Ignore:
Timestamp:
01/21/25 03:08:24 (3 days ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
0c6b92a
Message:

F4 Finalna Verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/es-object-atoms/test/index.js

    r0c6b92a r79a0317  
    44
    55var $Object = require('../');
    6 var ToObject = require('..//ToObject');
     6var isObject = require('../isObject');
     7var ToObject = require('../ToObject');
    78var RequireObjectCoercible = require('..//RequireObjectCoercible');
    89
     
    2021        t.deepEqual(RequireObjectCoercible(true), true);
    2122        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);
    2232
    2333        var obj = {};
Note: See TracChangeset for help on using the changeset viewer.