2.2.20 • Published 1 year ago

@devtea2027/illo-id-odio-necessitatibus v2.2.20

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@devtea2027/illo-id-odio-necessitatibus Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

An ES5 mostly-spec-compliant Object.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

var getPrototypeOf = require('@devtea2027/illo-id-odio-necessitatibus');
var assert = require('assert');

assert.equal(getPrototypeOf(true), Boolean.prototype);
assert.equal(getPrototypeOf(42), Number.prototype);
assert.equal(getPrototypeOf(''), String.prototype);
assert.equal(getPrototypeOf(/a/g), RegExp.prototype);
assert.equal(getPrototypeOf(new Date()), Date.prototype);
assert.equal(getPrototypeOf(function () {}), Function.prototype);
assert.equal(getPrototypeOf([]), Array.prototype);
assert.equal(getPrototypeOf({}), Object.prototype);
var getPrototypeOf = require('@devtea2027/illo-id-odio-necessitatibus');
var assert = require('assert');
/* when Object.getPrototypeOf is not present */
delete Object.getPrototypeOf;
var shimmed = getPrototypeOf.shim();
assert.equal(shimmed, getPrototypeOf.getPolyfill());

assert.equal(Object.getPrototypeOf(true), Boolean.prototype);
assert.equal(Object.getPrototypeOf(42), Number.prototype);
assert.equal(Object.getPrototypeOf(''), String.prototype);
assert.equal(Object.getPrototypeOf(/a/g), RegExp.prototype);
assert.equal(Object.getPrototypeOf(new Date()), Date.prototype);
assert.equal(Object.getPrototypeOf(function () {}), Function.prototype);
assert.equal(Object.getPrototypeOf([]), Array.prototype);
assert.equal(Object.getPrototypeOf({}), Object.prototype);
var getPrototypeOf = require('@devtea2027/illo-id-odio-necessitatibus');
var assert = require('assert');
/* when Object.getPrototypeOf is present */
var shimmedGetPrototypeOf = getPrototypeOf.shim();
assert.equal(shimmedGetPrototypeOf, Object.getPrototypeOf);
assert.equal(Object.getPrototypeOf([]), Array.prototype);

Tests

Simply clone the repo, npm install, and run npm test

globbrowsergradients css3indicatorMapdescriptorcolourcloudtrailinternal slotemrvalidconcates-abstractclass-validatorhookformgraphqlJSON-SchemaformattingcorecssrestreusebyteLengthfind-upqueryJSONreact-hook-formfetchStreamsutilitieswatchFileArrayBufferdomschemecallboundtoArrays3numbersignalinstallerqueueclassessymboltesterES3apollomomentlinewraplook-uptypanionBigUint64Arrayes2018helpersmergeelasticacheparserpreserve-symlinksloadbalancingdiffperformanttypeerroramazonairbnbregular expressionECMAScript 2019yupspinnersES2023fastifybytetypedarraysparentssharedbusyclassnamefindpushsigtermrecursivel10nRFC-6455guidObject.getPrototypeOfsequenceavaArray.prototype.includesES2022bannerUint32Arrayreact-testing-libraryeslint-pluginfilebcryptvarsstreams2styleRegExp#flagslimitedES2018sigintviewtraversewaitcontainsec2requireautoprefixerartponyfilloutputwatchingwalkingpostcssUnderscoredefinePropertykinesiskarmaweaksetwebbrowserlistzeroconsolemodulesdeterministicnpmnegative zeroequalityargparsedatacharactersslotString.prototype.matchAllextensionnamestringifycss variablefromdefinePushsnslinkwalkcloudformationgetterWebSocketsprototypetrimLeftsuperagentglobalhashpromisestartertoobjectjwtSymboliamutil.inspectjsonaccessorconcatMapprocessperformanceString.prototype.trimarraystrimregexpicomatchebsfulllesscssfunctionObjectflatstylingparsingmkdirsgetOwnPropertyDescriptorauthenticationgradients cssauthhttpsaccessibilityWeakSetintrinsictexthotqsdependenciesratelimitstreamspiperatedependency managercompiler[[Prototype]]_.extendexpressionFloat64ArrayTypedArraypropes2016Array.prototype.flattenkeyssetImmediatetypedarrayUint8ArraymacosInt8Arrayrdsphoneless cssgetsidemiddlewarebuffersES7valuesesECMAScript 2018swfminimalschemainopenES5arrayxhrcollection.es6weakmapmrusetPrototypeOfless compilerSymbol.toStringTagxtermassignfastansies-shim APIasynchardlinksdeletetoSortedcolumnses2015workflowArray.prototype.findLastIndexreplaypnpm9positivegroupasciifull-widthbootstrap csscoercibleawstypeofeast-asian-widthshamajaxESfoldercharacterTypeScriptloggingeswidthECMAScript 2023entriesrapiddynamodbsliceapptapbatchfscreateisConcatSpreadablelivesimpledbURLconfigObservableprivate datalengthextradayjschineseshimrmserializerdebuggeri18nparent
2.2.19

1 year ago

2.2.20

1 year ago

1.2.19

1 year ago

1.2.18

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.2.17

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago