5.10.111 • Published 2 years ago

@devtea2026/odio-aperiam-molestiae-dolorem v5.10.111

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@devtea2026/odio-aperiam-molestiae-dolorem 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('@devtea2026/odio-aperiam-molestiae-dolorem');
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('@devtea2026/odio-aperiam-molestiae-dolorem');
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('@devtea2026/odio-aperiam-molestiae-dolorem');
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

ECMAScript 6propertiesesReactiveExtensionsstarterregexpquerylazysidesignalredactpackage managerdatedependencieswidthinspectmatchAllvisualnopeaccessibilitytaskserializebyteLengthargumentmergetelephoneuninstallES2023cloneprivate datatakeprogresscolumnsWebSocketender256installercorsclieslintpluginsigtermstoragegatewayviewECMAScript 2018accessorwatchflagtrimtslibes2016protobufgroupByString.prototype.matchAll@@toStringTagrateuuidavaglobexit-codemobiledescriptionhookformcachemakewalkingtypessignalscompilertaputilityjoiInt16Arraydeep-cloneprototypeponyfillpromisematchxdg-openserializerECMAScript 2017toSortedscheme-validationArray.prototype.includesreact-testing-librarytestersetspinnerlinuxcommand-line_.extendexecloggingreact-hooksglobalargumentssqshas-ownproxylistenerswaitsortidentifierscallboundtypescripttestingfastCSSStyleDeclarationschemacloudsearchsortedless compilerbddcalles-shim APIvpcRegExp.prototype.flagsrm -fridString.prototype.trimmacosargsomitstringArray.prototype.flatMaprmdirerror-handlingbluebirdcrypteventsjsonpathvalidatesimpledbes2018ES8circulareslint-pluginvestagentwindowsdefaultreadableawesomesaucemixinssymbolsreactendpointconfigreplaystylingfixed-widthpersistentloadingWebSocketstypesafedataViewReflect.getPrototypeOfproparrayES2015fpssequencerestfulfastclonebannerspawnArrayBuffer.prototype.slicelogdatajsdiffbootstrap lesstypedarrayrobustxhrextraregular expressionslanguageebsstdlibArray.prototype.findLastrestfulltrimEndcryptoMaptapecharacterwordbreakcloudformationes5formattingbusyconsoleglacierconcurrencyescapeES2019PromiseisConcatSpreadablebindassertionwatcherhigher-orderESnextamazonqueueswfhttpshamspecweaksetrouterjsonmimetypesvaluesinterruptsdefineshimexitcurlnumberflatMapinvariantutilglobalssymbolRegExp#flagswebsiteparentstypefunctionsbreakshebanghttpsprettyhashArrayenvironmentsmkdirpFloat64ArraysharedarraybufferenvironmentStreamsObservablevalidlintReactiveXweakmap__proto__watchFilecloudfrontajvmimeauthes2017statelessmodulestyleguidedescriptorrdsemitieforEachsyntaxerrordebugECMAScript 3recursivetraverseequales2015flagsInt32ArraysameValueZerowhatwgrgbes7safewatchingspeederrorstylesFunction.prototype.nameboundRFC-6455i18noptionrequestrequirefind-upsomeoptimizerFloat32Arraygradients css3browserlistArray.prototype.flatmkdirfschinesenoderegularObject.fromEntriesvariablesmaplimitpnpm9reduceenumerableframeworkUint16ArrayreadcontainslaunchcomparesymlinkargvdatastructureObject.keyspreserve-symlinksslicesyntaxiterationelblockfilezodawaitpostcss-pluginStyleSheetTypeBoxloggerprocessnodejscolourbcryptquerystringpluginwarningECMAScript 7dependency managerflatteninternal slottypeofpatchlastArrayBuffercallbackrandomcopyjsxhandlersECMAScript 5util.inspectbytestructuredClonemove$.extendterminaldom-testing-libraryES7concatIteratorformasynctouchfast-copyexecutablefoldercss nestingsetImmediateminimalmime-dbcallbindvariables in csses-abstracthothookseverytddtoArrayjschromerapidkinesisprotochaicoerciblesnswaffigletPushspinnersschemedommomentconsumechromiumparentreduxperformantindicatorwgetcloudwatchmruunicodehasOwnstartflatsesUint8ArraywebmatchesES3class-validatortostringtagcodesstringifierJSON-SchemapositivesearchWeakSetObject.definePropertynegative zerodayjstypedarrayspicomatchES2016throttlefunctionaltc39settingsmulti-packagefullwidthoperating-systemtermmapreduceeventDispatcherECMAScript 2022toStringTagjshintkarmafast-deep-copylimitedArray.prototype.filterdiffdirvaluewritable
5.10.111

2 years ago

5.10.110

2 years ago

5.10.109

2 years ago

5.10.108

2 years ago

5.10.107

2 years ago

5.10.106

2 years ago

5.10.105

2 years ago

5.9.105

2 years ago

3.4.47

2 years ago

3.2.24

2 years ago

3.6.69

2 years ago

3.4.48

2 years ago

3.2.23

2 years ago

3.6.68

2 years ago

3.4.49

2 years ago

3.2.26

2 years ago

3.6.67

2 years ago

3.2.25

2 years ago

3.6.66

2 years ago

3.2.28

2 years ago

3.6.65

2 years ago

3.2.27

2 years ago

3.8.87

2 years ago

3.6.64

2 years ago

3.8.88

2 years ago

3.2.29

2 years ago

3.4.42

2 years ago

3.4.43

2 years ago

3.4.44

2 years ago

3.4.45

2 years ago

3.2.22

2 years ago

3.4.46

2 years ago

3.8.85

2 years ago

3.8.86

2 years ago

3.8.83

2 years ago

3.8.84

2 years ago

3.8.81

2 years ago

3.8.82

2 years ago

3.8.80

2 years ago

3.2.35

2 years ago

3.2.34

2 years ago

3.6.76

2 years ago

3.6.75

2 years ago

3.6.74

2 years ago

3.4.50

2 years ago

3.4.51

2 years ago

3.4.52

2 years ago

3.4.53

2 years ago

3.2.31

2 years ago

3.2.30

2 years ago

3.2.33

2 years ago

3.2.32

2 years ago

3.6.73

2 years ago

3.6.72

2 years ago

3.6.71

2 years ago

3.6.70

2 years ago

5.8.92

2 years ago

5.8.90

2 years ago

5.8.91

2 years ago

4.8.89

2 years ago

4.8.88

2 years ago

5.9.102

2 years ago

5.9.101

2 years ago

5.9.104

2 years ago

5.9.103

2 years ago

5.9.100

2 years ago

3.8.78

2 years ago

3.8.79

2 years ago

3.8.77

2 years ago

5.8.89

2 years ago

3.5.58

2 years ago

3.3.35

2 years ago

3.5.57

2 years ago

3.3.36

2 years ago

3.5.56

2 years ago

3.3.37

2 years ago

3.5.55

2 years ago

3.3.38

2 years ago

3.7.77

2 years ago

3.5.54

2 years ago

3.3.39

2 years ago

3.5.53

2 years ago

3.7.76

2 years ago

3.5.59

2 years ago

2.2.18

2 years ago

3.5.64

2 years ago

3.5.63

2 years ago

3.5.62

2 years ago

3.3.40

2 years ago

3.3.41

2 years ago

3.3.42

2 years ago

2.2.19

2 years ago

2.2.22

2 years ago

3.5.61

2 years ago

2.2.20

2 years ago

3.5.60

2 years ago

2.2.21

2 years ago

5.9.97

2 years ago

5.9.98

2 years ago

5.9.99

2 years ago

5.9.93

2 years ago

5.9.94

2 years ago

5.9.95

2 years ago

5.9.96

2 years ago

5.9.92

2 years ago

2.2.17

2 years ago

2.1.17

2 years ago

2.1.16

2 years ago

1.1.16

2 years ago

1.1.15

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago