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/has-proto/README.md

    r0c6b92a r79a0317  
    1717
    1818assert.equal(typeof hasProto(), 'boolean');
     19
     20var hasProtoAccessor = require('has-proto/accessor')();
     21if (hasProtoAccessor) {
     22        assert.equal([].__proto__, Array.prototype);
     23} else {
     24        assert(!('__proto__' in Object.prototype));
     25}
     26
     27var hasProtoMutator = require('has-proto/mutator');
     28var obj = {};
     29assert('toString' in obj);
     30
     31obj.__proto__ = null;
     32if (hasProtoMutator) {
     33        assert(!('toString' in obj));
     34} else {
     35        assert('toString' in obj);
     36        assert.equal(obj.__proto__, null);
     37}
    1938```
    2039
Note: See TracChangeset for help on using the changeset viewer.