Gathering detailed insights and metrics for @teamteanpm2024/odio-dolore-molestiae
Gathering detailed insights and metrics for @teamteanpm2024/odio-dolore-molestiae
npm install @teamteanpm2024/odio-dolore-molestiae
Typescript
Module System
Node Version
NPM Version
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
Latest Version
1.0.5
Package Id
@teamteanpm2024/odio-dolore-molestiae@1.0.5
Unpacked Size
8.77 kB
Size
3.25 kB
File Count
5
NPM Version
10.5.0
Node Version
20.12.2
Publised On
29 Apr 2024
Cumulative downloads
Total Downloads
Last day
0%
0
Compared to previous day
Last week
0%
0
Compared to previous week
Last month
0%
0
Compared to previous month
Last year
0%
0
Compared to previous year
37
An ES2015 mostly-spec-compliant Reflect.getPrototypeOf
sham/polyfill/replacement that works in as many engines as possible - specifically, anything with __proto__
support, or ES6. Built-in types will also work correctly in older engines.
This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec.
1var getPrototypeOf = require('@teamteanpm2024/odio-dolore-molestiae');
2var assert = require('assert');
3
4assert.throws(() => getPrototypeOf(true));
5assert.throws(() => getPrototypeOf(42));
6assert.throws(() => getPrototypeOf(''));
7assert.equal(getPrototypeOf(/a/g), RegExp.prototype);
8assert.equal(getPrototypeOf(new Date()), Date.prototype);
9assert.equal(getPrototypeOf(function () {}), Function.prototype);
10assert.equal(getPrototypeOf([]), Array.prototype);
11assert.equal(getPrototypeOf({}), Object.prototype);
1var getPrototypeOf = require('@teamteanpm2024/odio-dolore-molestiae');
2var assert = require('assert');
3/* when Reflect or Reflect.getPrototypeOf is not present */
4if (typeof Reflect === 'object') { delete Reflect.getPrototypeOf; }
5delete globalThis.Reflect;
6var shimmed = getPrototypeOf.shim();
7assert.equal(shimmed, getPrototypeOf.getPolyfill());
8
9assert.throws(() => Reflect.getPrototypeOf(true));
10assert.throws(() => Reflect.getPrototypeOf(42));
11assert.throws(() => Reflect.getPrototypeOf(''));
12assert.equal(Reflect.getPrototypeOf(/a/g), RegExp.prototype);
13assert.equal(Reflect.getPrototypeOf(new Date()), Date.prototype);
14assert.equal(Reflect.getPrototypeOf(function () {}), Function.prototype);
15assert.equal(Reflect.getPrototypeOf([]), Array.prototype);
16assert.equal(Reflect.getPrototypeOf({}), Object.prototype);
1var getPrototypeOf = require('@teamteanpm2024/odio-dolore-molestiae'); 2var assert = require('assert'); 3/* when Reflect.getPrototypeOf is present */ 4var shimmedGetPrototypeOf = getPrototypeOf.shim(); 5assert.equal(shimmedGetPrototypeOf, Reflect.getPrototypeOf); 6assert.equal(Reflect.getPrototypeOf([]), Array.prototype);
Simply clone the repo, npm install
, and run npm test
No vulnerabilities found.
No security vulnerabilities found.