7.4.99 • Published 1 year ago

@taktikorg/impedit-ipsum v7.4.99

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@taktikorg/impedit-ipsum Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Which kind of Typed Array is this JavaScript value? Works cross-realm, without instanceof, and despite Symbol.toStringTag.

Example

var whichTypedArray = require('@taktikorg/impedit-ipsum');
var assert = require('assert');

assert.equal(false, whichTypedArray(undefined));
assert.equal(false, whichTypedArray(null));
assert.equal(false, whichTypedArray(false));
assert.equal(false, whichTypedArray(true));
assert.equal(false, whichTypedArray([]));
assert.equal(false, whichTypedArray({}));
assert.equal(false, whichTypedArray(/a/g));
assert.equal(false, whichTypedArray(new RegExp('a', 'g')));
assert.equal(false, whichTypedArray(new Date()));
assert.equal(false, whichTypedArray(42));
assert.equal(false, whichTypedArray(NaN));
assert.equal(false, whichTypedArray(Infinity));
assert.equal(false, whichTypedArray(new Number(42)));
assert.equal(false, whichTypedArray('foo'));
assert.equal(false, whichTypedArray(Object('foo')));
assert.equal(false, whichTypedArray(function () {}));
assert.equal(false, whichTypedArray(function* () {}));
assert.equal(false, whichTypedArray(x => x * x));
assert.equal(false, whichTypedArray([]));

assert.equal('Int8Array', whichTypedArray(new Int8Array()));
assert.equal('Uint8Array', whichTypedArray(new Uint8Array()));
assert.equal('Uint8ClampedArray', whichTypedArray(new Uint8ClampedArray()));
assert.equal('Int16Array', whichTypedArray(new Int16Array()));
assert.equal('Uint16Array', whichTypedArray(new Uint16Array()));
assert.equal('Int32Array', whichTypedArray(new Int32Array()));
assert.equal('Uint32Array', whichTypedArray(new Uint32Array()));
assert.equal('Float32Array', whichTypedArray(new Float32Array()));
assert.equal('Float64Array', whichTypedArray(new Float64Array()));
assert.equal('BigInt64Array', whichTypedArray(new BigInt64Array()));
assert.equal('BigUint64Array', whichTypedArray(new BigUint64Array()));

Tests

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

comparezxmkdirpvalidatorfnmatchqueueprivatedynamodbtoReversedgenericswaapieslint-pluginquoteObject.isbufferpnpm9Int8Arraya11yspringindicatorprototermform-validation.gitignoreajaxreadableES20210Object.assigncharactersetterpushtoStringTagbytetypanionserializationentriesfast-copywalkstyleguidees2017walkinginqscolourCSSStyleDeclarationobjgetintrinsices-shimsECMAScript 2015forEachnegative zerosymlinksArray.prototype.flattenrfc4122listenerspackageskinesispackage managertelephoneMapArray.prototype.flatMaphas-owncolumnguidvarsTypeBoxcallscheme-validationsesfindupjestroutertypedmochaqueueMicrotasktrimStartmobileURLSearchParamsswf[[Prototype]]autoscalingHyBitestinstallerjoibindinvariantclassesfile systemfixed-widthtakeconcatschemasettingstslibdeletearraypipesideargstddcolorsecmascriptargvUint8ClampedArraymanagerObject.getPrototypeOffigletjshinttapereworkdependenciessetImmediateBigInt64ArrayrestfuldateequalityboundES2022parserchaieffect-tscloneregular expressionsgraphqlroutereversedexecfilebinaryECMAScript 2016jQuerylastdataViewdescriptorsfullawstoArraycollectionarktype.envzodredactstreamselfmergepoint-free3dbindeepownnopegetPrototypeOfWeakMapglobalfast-deep-cloneairbnbFloat64ArrayfunctionharmonysymbolsexecutefastcopyJSONECMAScript 2023parse6to5higher-orderhttpsdataECMAScript 6reduxprogressrestgitignorequeryspeedemrserializeaccessibilitymakeRxJSisConcatSpreadablemake dirtypesreact poseasserttypesafequerystringUnderscorecolumnsargumentregexpcensorjsonjsxlengthtextgetOwnPropertyDescriptorfind-updefinePropertyreadbuffersbddtoolsmkdiratomES2016JSON-SchemavalueshasOwneveryequalArrayBuffereventsmapreducearraysSymbol.toStringTagreal-timetransportECMAScript 7configurableproptoSortedpackageespreeagentutilxtermnumberinspectdomdebugtranspileglobalsrdsstyled-componentsreact-hookscachefetch
7.4.99

1 year ago

7.4.98

1 year ago

7.4.97

1 year ago

7.4.96

1 year ago

7.4.95

1 year ago

7.4.94

1 year ago

7.4.93

1 year ago

7.4.92

1 year ago

7.4.91

1 year ago

7.4.90

1 year ago

7.4.89

1 year ago

7.4.88

1 year ago

7.4.87

1 year ago

7.4.86

1 year ago

7.4.85

1 year ago

7.4.84

1 year ago

7.4.83

1 year ago

7.3.83

1 year ago

6.3.83

1 year ago

6.3.82

1 year ago

6.3.81

1 year ago

6.3.80

1 year ago

6.3.79

1 year ago

6.3.78

1 year ago

6.3.77

1 year ago

6.3.76

1 year ago

6.3.75

1 year ago

6.3.74

1 year ago

6.3.73

1 year ago

6.3.72

1 year ago

6.3.71

1 year ago

6.3.70

1 year ago

6.3.69

1 year ago

6.3.68

1 year ago

6.3.67

1 year ago

6.3.66

1 year ago

6.3.65

1 year ago

6.3.64

1 year ago

6.3.63

1 year ago

6.3.62

1 year ago

5.3.62

1 year ago

5.3.61

1 year ago

5.3.60

1 year ago

5.3.59

1 year ago

5.3.58

1 year ago

5.3.57

1 year ago

5.3.56

1 year ago

5.3.55

1 year ago

5.3.54

1 year ago

5.3.53

1 year ago

5.3.52

1 year ago

5.3.51

1 year ago

4.3.51

1 year ago

4.3.50

1 year ago

4.3.49

1 year ago

4.3.48

1 year ago

4.3.47

1 year ago

4.3.46

1 year ago

4.2.46

1 year ago

4.2.45

1 year ago

4.2.44

1 year ago

4.1.44

1 year ago

4.1.43

1 year ago

4.1.42

1 year ago

4.1.41

1 year ago

4.1.40

1 year ago

4.1.39

1 year ago

4.1.38

1 year ago

4.1.37

1 year ago

4.1.36

1 year ago

4.1.35

1 year ago

4.1.34

1 year ago

4.0.34

1 year ago

4.0.33

1 year ago

4.0.32

1 year ago

4.0.31

1 year ago

4.0.30

1 year ago

4.0.29

1 year ago

4.0.28

1 year ago

4.0.27

1 year ago

3.0.27

1 year ago

3.0.26

1 year ago

3.0.25

1 year ago

3.0.24

1 year ago

2.0.24

1 year ago

2.0.23

1 year ago

2.0.22

1 year ago

2.0.21

1 year ago

2.0.20

1 year ago

2.0.19

1 year ago

2.0.18

1 year ago

2.0.17

1 year ago

2.0.16

1 year ago

2.0.15

1 year ago

2.0.14

1 year ago

2.0.13

1 year ago

2.0.12

1 year ago

2.0.11

1 year ago

2.0.10

1 year ago

2.0.9

1 year ago

2.0.8

1 year ago

2.0.7

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