5.9.132 • Published 12 months ago

@ellentorg/aperiam-facere-fuga v5.9.132

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

#@ellentorg/aperiam-facere-fuga Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

browser support

An ES5 spec-compliant Array.prototype.some shim/polyfill/replacement that works as far down as ES3.

This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the proposed spec.

Because Array.prototype.some depends on a receiver (the “this” value), the main export takes the array to operate on as the first argument.

Example

var some = require('@ellentorg/aperiam-facere-fuga');
var assert = require('assert');

assert.equal(true, some([1, 2, 3], function (x) { return x === 2; }));
assert.equal(false, some([1, 2, 3], function (x) { return x === 4; }));
var some = require('@ellentorg/aperiam-facere-fuga');
var assert = require('assert');
/* when Array#some is not present */
delete Array.prototype.some;
var shimmedSome = some.shim();
assert.equal(shimmedSome, some.getPolyfill());
var arr = [1, 2, 3];
var threeOrLarger = function (x) { return x >= 3; };
assert.deepEqual(arr.some(threeOrLarger), some(arr, threeOrLarger));
var some = require('@ellentorg/aperiam-facere-fuga');
var assert = require('assert');
/* when Array#some is present */
var shimmedSome = some.shim();
assert.equal(shimmedSome, Array.prototype.some);
assert.deepEqual(arr.some(threeOrLarger), some(arr, threeOrLarger));

Tests

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

charactersStyleSheetES2016debugconcatwatcherJSONnativetypescripttsArray.prototype.filterglobalsstatelesstypeofprogresscoloriamreducerfullvpcecmascriptsetterjsonpathstyleguidecallbindrobustbindcss lessnamedeepcopyfscloudwatchnodejsimportjQuerycompareObject.fromEntriesStreamspecweakmapmapreducerouterrmtrimRighteshas-ownextensionlookfull-widthreal-timeuuidpositiveimmerECMAScript 6deepstreams2byteYAMLprotobufeslintpluginidless.jstypedarraybufferassignhigher-orderperformantclassnames__proto__mergeES2019setImmediateshellcontainssignalstylingES2017argvmodulecall-bindprefixparsercss variableredux-toolkitbddomitappurlonceauthsignalsclimkdirforEachswftypedefinePropertyautoprefixermkdirstelephoneremovewhichviewArrayBufferobjtypedarrayspersistentES2021dependency managercomputed-typesaccessibilityes-abstracttoolsserializeObject.valuesmatchAllFloat64Arrayworkflowcjkopenarrayhookformcss-in-js0UnderscorenumberdefineapiqueueMicrotaskdataweaksettrimStartcryptcommandstyled-componentsgetbannerdeepcloneInt32ArrayelmArray.prototype.flattentapefluxsinatraArrayBuffer.prototype.slicevalidatestylefile systemes7equalitytermisConcatSpreadablepredictabletypedarraynodereducejsdomdatastructurepostcss-plugindeletereact-hook-formparentemittesteremriteratorsyntaxerrorvalidsuperagenteslint-plugincircularsafecode pointscore-jsrandomstringenvironmentArray.prototype.containslimitedansiclassnamevesttrimEndunicodeemojigrouploadbalancingwritablefastcopyregular expressionsslotfseventsexechashindicatorES2023sqsfindLastwgetgradients cssArrayBuffer#sliceform[[Prototype]]HyBiimmutabledirsettingscompilerestreeObservablesfastifyserializationreplayquerystringes2017fast-copyprivate datakeyssymbolspeedincludeslogreactserializerreadsearchrecursivewordwrapbluebirdmime-dbsortedES3Array.prototype.findLastIndexStreamshttpsresolvepropertyconsoleponyfillendpointarktypelinkargumentpromisetostringtagESdirectorytouchjsonwatchingnegativeJSON-SchemawindowssuperstructjscurlyupmetadataargparseECMAScript 2022proxy_.extendsliceregexpcoercibleString.prototype.matchAllarraysglobalhasOwnPushregular expressionoptimistinternal sloterror-handlingformattingloggingES8visuales6extendlook-updropcolumniteratespinnerMappathasciibusycachebootstrap lessrfc4122Object.assignArray.prototype.flatMapstatusprocesscollectionhotFloat32Arrayl10nguidcloudsearchECMAScript 5movejavascriptdependenciessetdateESnextqsminimalshiminvariant.envcallbackrmdirrdsfindupmacosfilees2016glacieridlebreakglobfunctionlockfilebyteLengthFunction.prototype.namemimetypesfindBigUint64Arraylinuxstreamsfind-uproute53WebSocketsReactiveXmakeUint32ArrayArraywafelasticachebufferswriteenderscheme-validationvalueRFC-6455prunettypicomatchObject.entriespropAsyncIteratorprotocol-buffersless csssidebufferargsdom-testing-librarycssbootstrap cssSymbol.toStringTagrangeerrorsimpledbvariablespackage managerObject.definePropertyieyamlcloudfrontstarterflagoutputtslibxtermxhrIteratorInt16ArrayvarsECMAScript 2021collection.es6watchcallboundes5livecolorsUint16Array
3.6.69

1 year ago

3.6.68

1 year ago

3.6.67

1 year ago

3.8.89

1 year ago

3.6.66

1 year ago

3.6.65

1 year ago

3.8.87

1 year ago

3.6.64

1 year ago

3.8.88

1 year ago

3.6.63

1 year ago

3.8.85

1 year ago

3.6.62

1 year ago

3.8.86

1 year ago

3.8.83

1 year ago

1.4.26

1 year ago

3.8.84

1 year ago

1.4.25

1 year ago

3.8.81

1 year ago

1.4.28

1 year ago

3.8.82

1 year ago

1.4.27

1 year ago

3.8.80

1 year ago

1.4.29

1 year ago

3.6.79

1 year ago

3.6.78

1 year ago

3.6.77

1 year ago

3.6.76

1 year ago

3.6.75

1 year ago

3.6.74

1 year ago

2.5.58

1 year ago

1.4.31

1 year ago

2.5.59

1 year ago

1.4.30

1 year ago

1.4.33

1 year ago

1.4.32

1 year ago

3.8.96

1 year ago

3.6.73

1 year ago

3.8.97

1 year ago

3.6.72

1 year ago

1.4.34

1 year ago

3.8.94

1 year ago

3.6.71

1 year ago

3.8.95

1 year ago

3.6.70

1 year ago

3.8.92

1 year ago

3.8.93

1 year ago

3.8.90

1 year ago

3.8.91

1 year ago

4.9.124

1 year ago

4.9.125

1 year ago

4.9.126

1 year ago

4.9.127

1 year ago

4.9.123

1 year ago

4.9.128

1 year ago

4.9.129

1 year ago

1.5.50

1 year ago

1.5.52

1 year ago

1.5.51

1 year ago

1.5.54

1 year ago

1.5.53

1 year ago

1.5.56

1 year ago

1.5.55

1 year ago

1.5.58

1 year ago

1.5.57

1 year ago

4.9.130

1 year ago

4.9.131

1 year ago

4.9.132

1 year ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

3.7.79

1 year ago

4.8.101

1 year ago

4.8.102

1 year ago

4.8.100

1 year ago

4.8.105

1 year ago

2.6.59

1 year ago

4.8.106

1 year ago

4.8.103

1 year ago

1.5.34

1 year ago

4.8.104

1 year ago

4.8.109

1 year ago

1.5.36

1 year ago

1.5.35

1 year ago

1.0.21

1 year ago

4.8.107

1 year ago

1.5.38

1 year ago

1.0.20

1 year ago

4.8.108

1 year ago

1.5.37

1 year ago

1.5.39

1 year ago

2.6.60

1 year ago

2.6.61

1 year ago

4.8.120

1 year ago

4.8.98

1 year ago

4.8.97

1 year ago

4.8.112

1 year ago

4.8.113

1 year ago

4.8.99

1 year ago

4.8.110

1 year ago

1.5.41

1 year ago

4.8.111

1 year ago

1.5.40

1 year ago

4.8.116

1 year ago

1.5.43

1 year ago

4.8.117

1 year ago

1.5.42

1 year ago

4.8.114

1 year ago

1.5.45

1 year ago

4.8.115

1 year ago

1.5.44

1 year ago

1.5.47

1 year ago

1.3.24

1 year ago

1.5.46

1 year ago

1.3.25

1 year ago

4.8.118

1 year ago

1.5.49

1 year ago

4.8.119

1 year ago

1.5.48

1 year ago

3.7.80

1 year ago

2.6.62

1 year ago

5.9.132

12 months ago

4.8.123

1 year ago

4.8.121

1 year ago

4.8.122

1 year ago

1.2.23

1 year ago

1.2.24

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

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

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago