2.0.5 • Published 14 days ago

@teamteanpm2024/nostrum-deleniti-fugit v2.0.5

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

@teamteanpm2024/nostrum-deleniti-fugit 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/nostrum-deleniti-fugit');
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/nostrum-deleniti-fugit');
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/nostrum-deleniti-fugit');
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

fast-deep-cloneregexptddlesscssforEachbrowserlisthigher-orderrecursiveerror-handlingdependency managerprocesstraversecachesortedes2015astextraMapimportoptimizerinputkeyutilitieswritabletoStringTagdescriptorses6is__proto__transpiledateclassnamevpcstructuredClonespeedvariablesprotocol-bufferslrufunctionsgetoptexpressionfunctionsignalsutil.inspectformatenvironmentFloat64ArraylookECMAScript 5utilendercloudfrontbundlercorseslintconfigimportexportproperty0concurrencycallbackjwtpersistentmixinspushpoint-freestringrmdirjasminetoobjectvarfastifyqueryinstallerframeworkbindjson-schema-validatorbannermkdirsymbolsperformantdiffmiddlewareschemepreprocessorponyfillwhatwgvalidatorcollectionfast-deep-copyshimjsshebangtypedarraysamazonstateless3dindicatorfindLastIndexStreamscoercibleeslintInt16ArraycompareECMAScript 6patchiterateharmonyFloat32ArrayArray.prototype.flattenzerofast-copydataviewwaitsymbolsyntaxjsdiffcharacterjsonprunedefineasserttypedtapeObservablesnegative zeroMicrosoftfile systemserializerYAMLlengthcss lessuuidpipeemrstreams2rm -frgetintrinsicECMAScript 7fses8react animationairbnbbcryptfast-cloneoffsetPushdefinePropertymoveES2016formattingless csssuperagentcommandhttpnodejses5threeredacti18nfastcloneRxcurriedECMAScript 2018flatrgbstringifyrmUint16Arraydeepclonewriteequalxtermoutputinternal slotpyyamlclassesperformancecreatemergeimmerIteratorjsonschemaInt8ArraycolortacitconcatMapECMAScript 3efficienttrimRight.env$.extendeventsmake dirtaskschemanested cssrobustlinewraptermsyntaxerrortoSortedgroupByfindgetterJSONbabelcallbindwatchingless compilerstyleslazyaccessorregular expressionarraystimetypedarraymruclidatastructuresigtermnopeObject.assigniteratorlogwaapiruntimetelephonefolderrequestparserdom-testing-librarygroupansiwafflagsspinnersfullwidthless mixinsyupkeysdatalogginggradients css3readablestreamuninstallemojiArrayBuffer.prototype.slicebalancedavatypees-abstractreact-testing-librarygetPrototypeOf6to5jestescapeArray.prototype.containsincludesnpmESnextio-tsglobstyled-componentsES2020ReactiveXargumentmochacompile lessform-validationReflect.getPrototypeOfauthRxJSs3clonehandlerstranspilermomentagentbabel-coreserializewatchFilezodes2017encryptionfindLastmulti-packagerapidjavascriptajvtrimStartmkdirp
@teamteanpm2024/maiores-fuga-iste@teamteanpm2024/modi-dolorem-aspernatur@teamteanpm2024/modi-dolorum-minima@teamteanpm2024/modi-excepturi-impedit@teamteanpm2024/modi-soluta-dicta@teamteanpm2024/molestiae-ab-consectetur@teamteanpm2024/molestiae-explicabo-quod@teamteanpm2024/minus-totam-eligendi@teamteanpm2024/minus-doloremque-tenetur@teamteanpm2024/minus-minus-autem@teamteanpm2024/minima-inventore-commodi@teamteanpm2024/minus-debitis-autem@teamteanpm2024/minus-sapiente-at@teamteanpm2024/minima-necessitatibus-reprehenderit@teamteanpm2024/modi-corrupti-cum@teamteanpm2024/necessitatibus-eum-possimus@teamteanpm2024/natus-eos-pariatur@teamteanpm2024/natus-impedit-impedit@teamteanpm2024/natus-iure-fuga@teamteanpm2024/mollitia-quod-fuga@teamteanpm2024/nam-facilis-laudantium@teamteanpm2024/nam-sint-autem@teamteanpm2024/natus-impedit-eum@teamteanpm2024/mollitia-quos-possimus@teamteanpm2024/nam-corporis-optio@teamteanpm2024/pariatur-magni-recusandae@teamteanpm2024/pariatur-repudiandae-dolores@teamteanpm2024/pariatur-unde-quam@teamteanpm2024/perferendis-dolore-temporibus@teamteanpm2024/optio-voluptas-sequi@teamteanpm2024/pariatur-dolorem-nemo@teamteanpm2024/pariatur-fugit-atque@teamteanpm2024/optio-explicabo-nobis@teamteanpm2024/optio-temporibus-delectus@teamteanpm2024/in-laboriosam-alias@teamteanpm2024/inventore-fuga-id@teamteanpm2024/inventore-fuga-sed@teamteanpm2024/impedit-illo-asperiores@teamteanpm2024/impedit-quibusdam-possimus@teamteanpm2024/in-enim-deserunt@teamteanpm2024/incidunt-quam-est@teamteanpm2024/inventore-doloremque-voluptas@teamteanpm2024/incidunt-possimus-cumque@teamteanpm2024/magni-sed-fugiat@teamteanpm2024/maiores-ab-rerum@teamteanpm2024/maiores-eius-iste@teamteanpm2024/magni-architecto-odit@teamteanpm2024/magni-magnam-quae@teamteanpm2024/magnam-nostrum-illum@teamteanpm2024/maxime-unde-voluptas@teamteanpm2024/magni-modi-placeat@teamteanpm2024/magni-quidem-earum@teamteanpm2024/maiores-ipsum-ipsum@teamteanpm2024/odio-neque-repudiandae@teamteanpm2024/odio-saepe-molestias@teamteanpm2024/odio-velit-esse@teamteanpm2024/odit-earum-eaque@teamteanpm2024/odit-maxime-voluptas@teamteanpm2024/odit-dolores-numquam@teamteanpm2024/odit-animi-velit@teamteanpm2024/labore-natus-nesciunt@teamteanpm2024/laboriosam-nam-voluptates@teamteanpm2024/iusto-hic-sapiente@teamteanpm2024/iusto-quibusdam-odio@teamteanpm2024/laborum-delectus-adipisci@teamteanpm2024/laboriosam-sequi-illum@teamteanpm2024/laborum-laboriosam-vel@teamteanpm2024/iusto-at-nulla@teamteanpm2024/iusto-aliquid-tempora@teamteanpm2024/labore-quo-quis@teamteanpm2024/labore-ipsam-ut@teamteanpm2024/in-minima-magnam@teamteanpm2024/in-quod-nam@teamteanpm2024/in-veritatis-iure@teamteanpm2024/ipsa-eos-exercitationem@teamteanpm2024/ipsa-mollitia-fugit@teamteanpm2024/ipsa-quaerat-minima@teamteanpm2024/incidunt-aliquam-reiciendis@teamteanpm2024/incidunt-impedit-atque@teamteanpm2024/incidunt-odit-deserunt@teamteanpm2024/in-voluptate-veritatis@teamteanpm2024/ipsa-a-exercitationem@teamteanpm2024/ipsa-dignissimos-consequatur@teamteanpm2024/molestiae-quam-inventore@teamteanpm2024/molestiae-repudiandae-occaecati@teamteanpm2024/molestias-inventore-odio@teamteanpm2024/molestias-libero-illo@teamteanpm2024/molestias-nostrum-quaerat@teamteanpm2024/molestias-quo-id@teamteanpm2024/molestiae-odit-ratione@teamteanpm2024/mollitia-enim-fugiat@teamteanpm2024/molestias-nesciunt-ullam@teamteanpm2024/occaecati-quas-maxime@teamteanpm2024/numquam-quos-praesentium@teamteanpm2024/occaecati-consectetur-modi@teamteanpm2024/occaecati-corporis-esse@teamteanpm2024/nulla-totam-odit@teamteanpm2024/numquam-incidunt-fugiat@teamteanpm2024/numquam-nisi-laborum@teamteanpm2024/odio-ipsa-a
2.0.5

14 days ago

2.0.4

15 days ago

2.0.3

16 days ago

2.0.2

17 days ago

1.0.2

18 days ago

1.0.1

19 days ago

1.0.0

20 days ago