Installations
npm install @teamteanpm2024/inventore-doloremque-voluptas
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
20.12.2
NPM Version
10.5.0
Releases
Unable to fetch releases
Total Downloads
Cumulative downloads
Total Downloads
500
Last day
0%
4
Compared to previous day
Last week
0%
5
Compared to previous week
Last month
1,700%
18
Compared to previous month
Last year
0%
500
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
37
@teamteanpm2024/inventore-doloremque-voluptas
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.
Example
1var getPrototypeOf = require('@teamteanpm2024/inventore-doloremque-voluptas');
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/inventore-doloremque-voluptas');
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/inventore-doloremque-voluptas'); 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);
Tests
Simply clone the repo, npm install
, and run npm test
No vulnerabilities found.
No security vulnerabilities found.
Gathering detailed insights and metrics for @teamteanpm2024/inventore-doloremque-voluptas