1.1.4 • Published 11 days ago

@teamteanpm2024/illum-eaque-exercitationem v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
11 days ago

@teamteanpm2024/illum-eaque-exercitationem 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('@teamteanpm2024/illum-eaque-exercitationem');
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('@teamteanpm2024/illum-eaque-exercitationem');
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('@teamteanpm2024/illum-eaque-exercitationem');
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

statusdefinehookformtermbootstrap cssstyled-componentsreadablepushwritableTypeBoxtypesjsxMicrosoftquerystringfunctionsgdprerror-handling__proto__flattencsslinkwindowsECMAScript 3nodejsES5phonegradients css3widthpopmotionsequencecreateendpointhasOwnroute53keystyped arraytaskreadablestreamObject.keysenderrfc4122iteratestreams2TypeScriptbrowserslistcss-in-jsslotformssymbolmkdirpreprocessormergecoreES2022deep-clonerequireutilstylesheettypedarraysawaitautoprefixersearchoptimistpipeagentguidajaxecmascriptjson-schema-validationgetterstyleloadbalancingextensioniesignalscode pointsfind-upzerosidefast-clonedebugruntimecharacterslicebuffersstylingwgetargsargumentreact-testing-librarycliredactimmermkdirsfastcopycolorcss lessreact-hook-formutilsoperating-systemtrimRightmrucompilergesturesjsdomstreamstsserializationmetadataES2019RegExp.prototype.flagsinternaltakeconcatremoveflattimeassignrapidlimitdeep-copyObject.getPrototypeOf3dFloat32Arrayexpressionhigher-ordertestingRegExp#flagsdirredux-toolkitkoreanenvjQueryoncesetterdiffchaisortedspecirqObject.entriespathSymbol.toStringTaglengthbundlinglanguageaccessibilityECMAScript 2019ES2020passwordsymlinksArray.prototype.findLastIndexbindtranspilereactassertdayjsairbnbuuid-0toStringTagnoperobustkinesisinspecthascall-bindrgbInt16ArraytoolkitloggingJSONsomehttpsbddisConcatSpreadablegroupduplexECMAScript 6superstructqueueMicrotasks3configObject.assignauthpruneBigInt64Arraystartertypedcommandcolourreducerprocessextendmiddlewaretrimcommand-lineforEachstableconfigurableasyncjson-schema-validatorlockfileemitawsjasminees8getintrinsicutilitiescorscolorsprivate datatrimStartbeanstalkcurloutputassertssigintfull-widthiamterminalstringURLSearchParamssuperagentcallbackes2015fantasy-landprotobufgroupBymatchAllshames7getWeakSetomitfast-deep-copyObservableschannelapiregular expressionbluebirdString.prototype.trimenvironment@@toStringTagECMAScript 2023japaneseschemehttpharmonyxtermtoSortedkeyintrinsicArray.prototype.filterstyleguidereusereal-timeconsumedeepcopyreact poseglobtouchajvdescriptionmixinsparentes-shimseslintconfigdataViewcomputed-typesincludesrateBigUint64Arrayinterruptsfptostringtagcss nestingUint8Arrayavaautoscalingwafexit-codepersistentregexpelbscheme-validationcall-boundfastifyrequestes2016eslint-pluginwhichbabel-corereact animationtypeofvpcyupRFC-6455positivejsReflect.getPrototypeOfrmdirlesscssFunction.prototype.nameasciipolyfillframerentriesspinnertelephonecore-jsframeworklazyargparseFloat64Arrayes5byteLengthnumbergradients csscss variableUint16Arraycommanderclassnamematchesfoldernested cssartes6Object.valuesstylessyntaxposepropertysimpledbworkflowdependenciestypescriptvariables in cssdebuggercloudsearchAsyncIteratorwatchingCSSES2015warningspinnersparserm -frcompareECMAScript 5WebSocketsgetoptpropertiesmaketypeArray.prototype.findLasttraverseeventEmittermulti-packageStyleSheetbootstrap lessmomentenumerabledeletePushexpresscolumnseslintplugin0offsetconsolechromiumWebSocketcopyminimalMapfseventsarraysmacosdotenvdatewatchFileprotocol-buffersgenericscollectionSymbolinstallerimportclass-validatorbytespeedpackagefunctionl10nfindLastargvcallpoint-freeObject.definePropertywordwrapparserArrayqueue256writecryptodependency managerHyBiclasseseslintvarprotoes2017tapfilefunctionalresolvethrottleyamlnegativeshrinkwrappromisesReactiveExtensionscontains$.extendlogflagspluginansiestreereduceArray.prototype.containsclassnamespropwalkingeveryUint8ClampedArrayimmutablearraybufferECMAScript 2020String.prototype.matchAllvestObject.istacitregular expressionspackage managerassertionchromeES8bundlerconnectrecursivejson-schemahooksECMAScript 7electronfpspostcss-plugininputtoobjectPromisemkdirpnoderatelimitstatelessbreakfastshimpreserve-symlinkscollection.es6iterationiteratorfigletcloudwatchobjectformatECMAScript 2018ReactiveXstringifierECMAScript 2016sameValueZerocallbindnamesvaluefsObject.fromEntriesmocharegexweaksetswftapedeepcloudfrontnpmcharactersTypedArrayreact-hooksbanneremrcoerciblemonorepomatchmobilebrowsernegative zerojestdropdraggetPrototypeOfmoduleswebflages-abstractwordbreaksyntaxerrorcheckObservableES2017toolsa11yjsdiffjavascripteventDispatcherIteratorvisualefficientfilterlibphonenumberstreamequalrmjwteventsArray.prototype.includesinternal slotweakmapvalidatebrowserlistprivatecjkbyteOffsetprefixzodfixed-widthurlfullwidthpnpm9movebufferobjbabelpackage.jsoncircularrandomArray.prototype.flatMapsanitizationArrayBuffer#sliceshebangindicator.envstringifypostcsspicomatchisttyletloggeroptiontranspilertextUnderscoreArrayBuffer.prototype.slicepromisefromdataparentsaccessorwalkcodesmodulesymbolsjsonconstdirectoryinvariantless mixinsserializemake dirbalanced
1.1.4

11 days ago

1.1.3

12 days ago

1.1.2

13 days ago

1.1.1

14 days ago

1.1.0

15 days ago

1.0.0

15 days ago