3.10.154 • Published 7 months ago

@firanorg/saepe-ut-natus v3.10.154

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

ArrayBuffer.prototype.slice Version Badge

github actions coverage License Downloads

npm badge

An ES spec-compliant ArrayBuffer.prototype.slice shim. Invoke its "shim" method to shim ArrayBuffer.prototype.slice if it is unavailable.

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

Most common usage:

var assert = require('assert');
var slice = require('@firanorg/saepe-ut-natus');

var ab = new ArrayBuffer(1);
var arr = new Uint8Array(ab);
arr[0] = 123;

var ab2 = slice(ab);

var arr2 = new Uint8Array(ab2);
arr2[0] = 234;

assert.deepEqual(arr, new Uint8Array([123]));
assert.deepEqual(arr2, new Uint8Array([234]));

if (!ArrayBuffer.prototype.transfer) {
	slice.shim();
}

var ab2 = ab.slice();

var arr2 = new Uint8Array(ab2);
arr2[0] = 234;

assert.deepEqual(arr, new Uint8Array([123]));
assert.deepEqual(arr2, new Uint8Array([234]));

Tests

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

windowspostcss-pluginfunctionssymbolswrapcolumnsAsyncIteratorprocessio-ts@@toStringTagworkerreducephoneargumentpipeimportECMAScript 2021ECMAScript 7errorassertBigInt64ArrayES2015statelessmodulepropertycloudsearchcolorpicomatchdirectoryrm -frRxJSstringsidetapepatheast-asian-widthirqvisualcompilerartswfgradients css3schemetouchsymlinkECMAScript 3grouppropertiessortedparentnodejslinewrapRFC-6455ObservablesdayjsaccessibilitysinatraautoprefixervpcbusyJSONpnpm9Symboldeep-clonekeyshebangconfigurablePromiseliveESECMAScript 2022scheme-validationflattencall-bindArraynamesArray.prototype.containselectron256commandertypescriptprivate datanegative zerohashArray.prototype.flatMapstablequerytasktypedsymlinkstestersuperagentRegExp#flagsspeedfpsincludesbluebirdwidthcryptObject.valuesURLSearchParamsinstallerfast-clonebindless compilerform-validationpruneawswritablereadablestreamrm -rfgenericsPusharraysfilefastcloneESnextutilitiessqssespredictablemimetelephoneterminalvestfigletnativeequalitychrometypedarraybatchMicrosoftajaxfast-copytypesafeFunction.prototype.namereal-timeenumerablepackage managerxhrObject.assignawaitinsigintcharacterfetchperformanceextradropcss nestingjapanesecontainsBigUint64ArrayObject.getPrototypeOfrmregularparentssharedarraybuffermappersistentutil.inspectCSSStyleDeclarationsliceloggerpackagekarmaprefixtypanionrangeerrortrimStartproxyFloat64Arraysignalsreact-testing-librarycloneinferenceboundtoStringTagenderglobalhttpimportexportlimitedArrayBuffer.prototype.slicereact-hooksjsdiffclassnamesmetadatauuidjwtwget.envString.prototype.matchAllthroatopensearchapiprotodynamodbvalidshrinkwrapwatcherwatchingdatastructurenegativees-shim APIreact-hook-formglobcsstoArraytsoptimizerparsinggetintrinsicRegExp.prototype.flagsfseventsarktypecodeslengthavaroute53stringifierqueues3a11ysettingsstylingconcurrencyenvsetPrototypeOfRxdateownjQueryECMAScript 2015shellkeysbufferassignhaseslintArray.prototype.includescheckmimetypesstoragegatewayeventEmitterbyteLengthfastcopycommand-lineserializebddbundlerdependency manageres8ES7syntaxerrorcircularconsole$.extenddescriptionreadablepackagesrestmkdirebsdescriptorminimalstructuredCloneassertstslibweakmapruntimeoffsetelmsignalES3jasminetypeofcloudfronttypetakeaccessorinvariantnpmwhatwginternalmake dirregular expressionsspeccss variablesetternested cssinstallfunctionalagentflagsES2023es-shimsdeepstylefunctionimmutableoptionoptimistframeworkvariablesECMAScript 2016browserslistautoscalingStyleSheethandlerseslintpluginrestfullinuxclass-validatorauthObject.isbuffersfindobjprettyeventDispatcherdataconnectredactcollection.es6corefullwidthelbsetfindLastcollectionsequencechinesecallbacksafewordwrapcliprivatemruequalcode pointsvalueemojiTypedArrayrateairbnbemrzodtoSortedECMAScript 2017classnameformexeces2017javascriptconcatMapfoldersymbolfind-upUnderscoredataviewformatcompile lessstdlibamazonreuseformattingremovestatusextendproplazyUint8ClampedArray0package.json_.extendfindLastIndexrgbpluginl10nrecursiveprotocol-buffersyupcreateerror-handlinglimitconcatidObject.entriesperformantfsObservableforEacheventsES5callboundgetPrototypeOfbeanstalklibphonenumberwatchFileglacierUint8ArraystylesxtermjsonthrottletextWeakSetpreprocessorpreserve-symlinkses-abstractomitfast-deep-clonemomenthasOwnPropertycopy
3.10.154

7 months ago

3.10.153

7 months ago

2.10.145

7 months ago

3.10.148

7 months ago

2.9.140

7 months ago

3.10.147

7 months ago

2.9.141

7 months ago

2.10.147

7 months ago

2.9.142

7 months ago

3.10.149

7 months ago

2.10.146

7 months ago

2.9.143

7 months ago

2.9.136

8 months ago

3.10.151

7 months ago

2.9.137

7 months ago

3.10.150

7 months ago

2.9.138

7 months ago

2.9.139

7 months ago

3.10.152

7 months ago

2.9.144

7 months ago

2.9.145

7 months ago

2.9.134

8 months ago

2.9.135

8 months ago

2.9.132

8 months ago

2.9.133

8 months ago

2.9.131

8 months ago

2.9.130

8 months ago

2.8.130

8 months ago

2.8.129

8 months ago

2.8.127

8 months ago

2.8.128

8 months ago

2.8.125

8 months ago

2.8.126

8 months ago

2.8.124

8 months ago

2.8.123

8 months ago

2.8.122

8 months ago

2.8.121

8 months ago

2.8.120

8 months ago

2.8.119

8 months ago

2.8.118

8 months ago

2.8.116

8 months ago

2.8.117

8 months ago

2.8.115

8 months ago

2.8.114

8 months ago

2.7.114

8 months ago

2.7.113

8 months ago

2.7.112

8 months ago

2.7.111

8 months ago

2.7.110

8 months ago

2.7.109

8 months ago

2.7.108

9 months ago

1.1.29

11 months ago

1.1.28

11 months ago

2.6.100

9 months ago

1.5.72

10 months ago

1.5.71

10 months ago

1.5.74

10 months ago

1.5.73

10 months ago

1.5.76

10 months ago

1.1.30

11 months ago

1.5.75

10 months ago

1.5.78

10 months ago

1.5.77

10 months ago

2.6.99

9 months ago

1.1.34

11 months ago

1.5.79

10 months ago

1.1.33

11 months ago

1.1.32

11 months ago

1.1.31

11 months ago

1.1.38

11 months ago

1.1.37

11 months ago

1.1.36

11 months ago

2.6.98

9 months ago

1.1.35

11 months ago

1.1.39

11 months ago

1.5.81

10 months ago

1.5.80

10 months ago

1.5.82

9 months ago

1.1.41

11 months ago

1.1.40

11 months ago

1.3.68

10 months ago

1.1.45

11 months ago

1.3.69

10 months ago

1.1.44

11 months ago

1.3.66

10 months ago

1.1.43

11 months ago

1.3.67

10 months ago

1.1.42

11 months ago

1.1.49

11 months ago

1.1.48

11 months ago

1.1.47

11 months ago

1.1.46

11 months ago

1.2.60

10 months ago

1.2.63

10 months ago

1.2.64

10 months ago

1.2.61

10 months ago

1.2.62

10 months ago

1.2.65

10 months ago

1.2.66

10 months ago

1.1.19

12 months ago

2.7.106

9 months ago

2.7.107

9 months ago

2.7.102

9 months ago

2.7.103

9 months ago

2.7.104

9 months ago

2.7.105

9 months ago

1.1.23

12 months ago

1.1.22

12 months ago

1.1.21

12 months ago

1.1.20

12 months ago

1.1.27

11 months ago

1.1.26

12 months ago

1.1.25

12 months ago

1.1.24

12 months ago

1.6.82

9 months ago

1.6.84

9 months ago

1.6.83

9 months ago

2.7.100

9 months ago

1.6.86

9 months ago

2.7.101

9 months ago

1.6.85

9 months ago

1.6.88

9 months ago

1.6.87

9 months ago

1.6.89

9 months ago

1.6.91

9 months ago

1.6.90

9 months ago

1.6.93

9 months ago

1.6.92

9 months ago

1.6.95

9 months ago

1.4.71

10 months ago

1.6.94

9 months ago

1.4.70

10 months ago

1.6.97

9 months ago

1.6.96

9 months ago

1.6.98

9 months ago

1.2.59

10 months ago

1.3.70

10 months ago

1.1.52

11 months ago

1.1.51

11 months ago

1.1.50

11 months ago

1.1.56

10 months ago

1.1.55

11 months ago

1.1.54

11 months ago

1.1.53

11 months ago

1.1.59

10 months ago

1.1.58

10 months ago

1.1.57

10 months ago

1.2.39

11 months ago

1.1.18

12 months ago

1.1.17

12 months ago

1.1.16

12 months ago

1.1.15

12 months ago

1.1.14

12 months ago

1.1.13

12 months ago

1.1.12

12 months ago

1.1.11

12 months ago

1.1.10

12 months ago

1.1.9

12 months ago

1.1.8

12 months ago

1.1.7

12 months 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.1.1

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago