7.4.99 • Published 2 years ago

@taktikorg/impedit-ipsum v7.4.99

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

7.4.98

2 years ago

7.4.97

2 years ago

7.4.96

2 years ago

7.4.95

2 years ago

7.4.94

2 years ago

7.4.93

2 years ago

7.4.92

2 years ago

7.4.91

2 years ago

7.4.90

2 years ago

7.4.89

2 years ago

7.4.88

2 years ago

7.4.87

2 years ago

7.4.86

2 years ago

7.4.85

2 years ago

7.4.84

2 years ago

7.4.83

2 years ago

7.3.83

2 years ago

6.3.83

2 years ago

6.3.82

2 years ago

6.3.81

2 years ago

6.3.80

2 years ago

6.3.79

2 years ago

6.3.78

2 years ago

6.3.77

2 years ago

6.3.76

2 years ago

6.3.75

2 years ago

6.3.74

2 years ago

6.3.73

2 years ago

6.3.72

2 years ago

6.3.71

2 years ago

6.3.70

2 years ago

6.3.69

2 years ago

6.3.68

2 years ago

6.3.67

2 years ago

6.3.66

2 years ago

6.3.65

2 years ago

6.3.64

2 years ago

6.3.63

2 years ago

6.3.62

2 years ago

5.3.62

2 years ago

5.3.61

2 years ago

5.3.60

2 years ago

5.3.59

2 years ago

5.3.58

2 years ago

5.3.57

2 years ago

5.3.56

2 years ago

5.3.55

2 years ago

5.3.54

2 years ago

5.3.53

2 years ago

5.3.52

2 years ago

5.3.51

2 years ago

4.3.51

2 years ago

4.3.50

2 years ago

4.3.49

2 years ago

4.3.48

2 years ago

4.3.47

2 years ago

4.3.46

2 years ago

4.2.46

2 years ago

4.2.45

2 years ago

4.2.44

2 years ago

4.1.44

2 years ago

4.1.43

2 years ago

4.1.42

2 years ago

4.1.41

2 years ago

4.1.40

2 years ago

4.1.39

2 years ago

4.1.38

2 years ago

4.1.37

2 years ago

4.1.36

2 years ago

4.1.35

2 years ago

4.1.34

2 years ago

4.0.34

2 years ago

4.0.33

2 years ago

4.0.32

2 years ago

4.0.31

2 years ago

4.0.30

2 years ago

4.0.29

2 years ago

4.0.28

2 years ago

4.0.27

2 years ago

3.0.27

2 years ago

3.0.26

2 years ago

3.0.25

2 years ago

3.0.24

2 years ago

2.0.24

2 years ago

2.0.23

2 years ago

2.0.22

2 years ago

2.0.21

2 years ago

2.0.20

2 years ago

2.0.19

2 years ago

2.0.18

2 years ago

2.0.17

2 years ago

2.0.16

2 years ago

2.0.15

2 years ago

2.0.14

2 years ago

2.0.13

2 years ago

2.0.12

2 years ago

2.0.11

2 years ago

2.0.10

2 years ago

2.0.9

2 years ago

2.0.8

2 years ago

2.0.7

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

1.0.0

2 years ago