Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-object-atoms/test/index.js
r0c6b92a r79a0317 4 4 5 5 var $Object = require('../'); 6 var ToObject = require('..//ToObject'); 6 var isObject = require('../isObject'); 7 var ToObject = require('../ToObject'); 7 8 var RequireObjectCoercible = require('..//RequireObjectCoercible'); 8 9 … … 20 21 t.deepEqual(RequireObjectCoercible(true), true); 21 22 t.deepEqual(ToObject(true), Object(true)); 23 t.deepEqual(ToObject(42), Object(42)); 24 var f = function () {}; 25 t.equal(ToObject(f), f); 26 27 t.equal(isObject(undefined), false); 28 t.equal(isObject(null), false); 29 t.equal(isObject({}), true); 30 t.equal(isObject([]), true); 31 t.equal(isObject(function () {}), true); 22 32 23 33 var obj = {};
Note:
See TracChangeset
for help on using the changeset viewer.