Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

RunKit + npm: jsdom

node v6.17.1
endpointsharetweet
var jsdom = require("jsdom") var window = jsdom.jsdom().defaultView; Object.defineProperty(window, 'testVar', {enumerable: true, get: function () { return 'test'; }}); console.log('get' in Object.getOwnPropertyDescriptor(window, 'testVar'));
Created from: https://runkit.com/npm/jsdom
Loading…

no comments

    sign in to comment