3.11.68 • Published 11 months ago

@hishprorg/maiores-sunt v3.11.68

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

@hishprorg/maiores-sunt Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

An ES2019 spec-compliant Array.prototype.flat 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.flat depends on a receiver (the this value), the main export takes the array to operate on as the first argument.

Getting started

npm install --save @hishprorg/maiores-sunt

Usage/Examples

var flat = require('@hishprorg/maiores-sunt');
var assert = require('assert');

var arr = [1, [2], [], 3, [[4]]];

assert.deepEqual(flat(arr, 1), [1, 2, 3, [4]]);
var flat = require('@hishprorg/maiores-sunt');
var assert = require('assert');
/* when Array#flat is not present */
delete Array.prototype.flat;
var shimmedFlat = flat.shim();

assert.equal(shimmedFlat, flat.getPolyfill());
assert.deepEqual(arr.flat(), flat(arr));
var flat = require('@hishprorg/maiores-sunt');
var assert = require('assert');
/* when Array#flat is present */
var shimmedIncludes = flat.shim();

var mapper = function (x) { return [x, 1]; };

assert.equal(shimmedIncludes, Array.prototype.flat);
assert.deepEqual(arr.flat(mapper), flat(arr, mapper));

Tests

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

bundlingoptimistpackagesprunedirectoryomitpluginpropertyshaminvariantcloudsearchimportdomUint8Arraymatchesvariables in csstimecryptECMAScript 2020iterationworkerflagES6macosrulesreduceloadbalancingcollection.es6typedarraycommandbddfastclonetoolkitless.jsRFC-6455deletesessuperstructboundformsapidayjscss nestingfast-clonebinariesuploadauthcommand-linestylesES7ECMAScript 2021randomanimationinterruptswritablecorecloudformationreadablestreamdraghigher-orderweakmaptc39ReactiveXcolumnsglobalThisservicemodulesECMAScript 3String.prototype.trimPushuser-streamsRegExp.prototype.flagsstatelesssigintresolveCSSStyleDeclarationartkeyreact-hooksmonorepovisuales-shimsgetoptsameValueZeroschemesignalvalidateserializationvarsReflect.getPrototypeOfredactuninstallreal-timeerrorextravaluesfromnativebinsyntaxerrorreducercodesfixed-widthwhichStreamsterminalfigletECMAScript 2016spinnersObject.isnegative zerofastcopyinIteratorless csspromiseUint32ArraytscallboundoutputsimpledbgetbrowserES2019TypeBoxequalityperformantbinaryfullwidthflagsregexpjQueryrangeerrorcolorsettings3dobjectenderslotcomputed-typesequalbabel-corenested cssruntimeperformancesymlink@@toStringTagpersistentflatMaptoArrayESshebangreact-componentopensslcertificatesCSSforkownObservableshookformsharedselfES8eslintplugingesturesreact-hook-formexitbannerArrayBuffer#sliceflattengroupreadablemakecall-bindforEach6to5transpilerassertsajaxfindsliceagentcolorspoint-freetrimLeftrobusthandler.envprotobufpostcss-plugintelephoneES2021make dirfpsES2015tostringtagtypescriptquerylistenersHyBifullcoerciblespinnereslint$.extendserializechildefficientintrinsicestreeECMAScript 2019routingUnderscoresymlinkshookscompareFloat64ArrayjapaneseECMAScript 2018environmentBigInt64Arraypreprocessorvalidatorencryptionlocaljson-schema-validationgraphqlback-endarraybufferdeepcopymatchdatastructuregenericscommanderassertes8ajvJSONiamenvironmentsfluximmerfindLastIndexs3YAMLfunction.lengthsetPrototypeOfletelmweaksetmanagerjestshrinkwrapAsyncIteratorES5progressUint8ClampedArrayfindLastfast-copyamazonviewStyleSheetjsxnumberregular expressiontakelanguageObject.valuessortedloadingyamllinksafesqsaccessorconcatECMAScript 2023prototypeenvroute532560fnmatch-0eslint-pluginnodereact posehas-ownSymbolloggingWeakSetlessacorniteraterouteObservablecryptostructuredClonetraverseansientriespostcsscallfaststylezerojavascriptexpressiones2016ES2016authenticationirqURLSearchParamsspawnArray.prototype.filternpmignoreproxyeventEmitterfastifytrimRightformatglobal this valueArrayesdatalibphonenumberecmascriptbabelObject.entriesendpointStreamxtermregexes-abstractES2023bootstrap cssl10nstyled-componentsservercharacteryupfast-deep-copyebsTypedArrayJSON-Schema
3.11.68

11 months ago

3.11.67

11 months ago

3.11.66

11 months ago

3.11.65

11 months ago

3.11.64

11 months ago

3.11.63

11 months ago

3.11.62

11 months ago

3.11.61

11 months ago

3.11.60

11 months ago

3.11.59

11 months ago

3.11.58

11 months ago

3.11.57

11 months ago

3.11.56

11 months ago

3.11.55

11 months ago

3.11.54

11 months ago

3.11.53

11 months ago

3.11.52

12 months ago

3.10.52

12 months ago

3.10.51

12 months ago

3.9.51

12 months ago

3.8.51

12 months ago

3.8.50

12 months ago

3.7.50

12 months ago

3.7.49

12 months ago

3.7.48

12 months ago

3.7.47

12 months ago

3.6.47

12 months ago

3.6.46

12 months ago

3.6.45

12 months ago

2.6.45

12 months ago

2.6.44

12 months ago

2.6.43

12 months ago

2.6.42

12 months ago

2.5.42

12 months ago

2.5.41

12 months ago

2.5.40

12 months ago

2.5.39

1 year ago

2.5.38

1 year ago

2.5.37

1 year ago

2.5.36

1 year ago

2.5.35

1 year ago

2.5.34

1 year ago

1.5.34

1 year ago

1.5.33

1 year ago

1.5.32

1 year ago

1.5.31

1 year ago

1.5.30

1 year ago

1.4.30

1 year ago

1.4.29

1 year ago

1.4.28

1 year ago

1.4.27

1 year ago

1.4.26

1 year ago

1.4.25

1 year ago

1.4.24

1 year ago

1.3.24

1 year ago

1.3.23

1 year ago

1.3.22

1 year ago

1.3.21

1 year ago

1.3.20

1 year ago

1.3.19

1 year ago

1.3.18

1 year ago

1.3.17

1 year ago

1.2.17

1 year ago

1.2.16

1 year ago

1.2.15

1 year ago

1.2.14

1 year ago

1.2.13

1 year ago

1.2.12

1 year ago

1.2.11

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago