5.9.131 • Published 10 months ago

@patrtorg/vero-quibusdam-ipsa v5.9.131

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

isCollection

NPM version Build Status Coverage Status

Test if a value is a collection.

A collection is defined as either an Array, Typed Array, or an array-like Object (excluding strings and functions).

Installation

npm install @patrtorg/vero-quibusdam-ipsa

Alternatively,

  • To load the package in a website via a script tag without installation and bundlers, use the ES Module available on the esm branch (see README).
  • If you are using Deno, visit the deno branch (see README for usage intructions).
  • For use in Observable, or in browser/node environments, use the Universal Module Definition (UMD) build available on the umd branch (see README).

The branches.md file summarizes the available branches and displays a diagram illustrating their relationships.

To view installation and usage instructions specific to each branch build, be sure to explicitly navigate to the respective README files on each branch, as linked to above.

Usage

var isCollection = require( '@patrtorg/vero-quibusdam-ipsa' );

isCollection( value )

Tests if a value is a collection.

var bool = isCollection( [] );
// returns true

Examples

var Int8Array = require( '@stdlib/array-int8' );
var Uint8Array = require( '@stdlib/array-uint8' );
var Uint8ClampedArray = require( '@stdlib/array-uint8c' );
var Int16Array = require( '@stdlib/array-int16' );
var Uint16Array = require( '@stdlib/array-uint16' );
var Int32Array = require( '@stdlib/array-int32' );
var Uint32Array = require( '@stdlib/array-uint32' );
var Float32Array = require( '@stdlib/array-float32' );
var Float64Array = require( '@stdlib/array-float64' );
var isCollection = require( '@patrtorg/vero-quibusdam-ipsa' );

var bool = isCollection( [] );
// returns true

bool = isCollection( new Float64Array( 10 ) );
// returns true

bool = isCollection( new Float32Array( 10 ) );
// returns true

bool = isCollection( new Int32Array( 10 ) );
// returns true

bool = isCollection( new Uint32Array( 10 ) );
// returns true

bool = isCollection( new Int16Array( 10 ) );
// returns true

bool = isCollection( new Uint16Array( 10 ) );
// returns true

bool = isCollection( new Int8Array( 10 ) );
// returns true

bool = isCollection( new Uint8Array( 10 ) );
// returns true

bool = isCollection( new Uint8ClampedArray( 10 ) );
// returns true

bool = isCollection( { 'length': 0 } );
// returns true

bool = isCollection( {} );
// returns false

bool = isCollection( 'beep' );
// returns false

bool = isCollection( isCollection );
// returns false

bool = isCollection( null );
// returns false

bool = isCollection( void 0 );
// returns false

bool = isCollection( 3.14 );
// returns false

See Also


Notice

This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.

For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.

Community

Chat


License

See LICENSE.

Copyright

Copyright © 2016-2024. The Stdlib Authors.

workspace:*visualconfigurablesymbolajvsymlinkloadingUint8Arrayworkflowmkdirprivate dataflatbusyaccessibilityescapesymlinksautoscalingtoolseventEmitterfastparserconfigMicrosofttapgenericsenvironmentsBigUint64ArraycharacterprotolibphonenumberpicomatchbuffersreducerhassesECMAScript 3sortJSON-SchemacodeslinkwebdirectoryYAMLspinneromitfindLastIndexinvariantlimites6core-jsES2021toSortedisConcatSpreadablerequestautoprefixerregexpsequenceprototypewalkingwaapientriesfullinstallerunicodeeast-asian-widthtrimStartresolveyamlSymbol.toStringTagtddReflect.getPrototypeOfprunezeroArraymatchAllglobicuassignbatchredirectstdliblengthArray.prototype.flattenperformantpolyfillcryptointernaljsonpathshebangutilityarraylogchannelcallboundapolloInt32ArrayinkinesiskeysiterationsetImmediatecolorsnativeReactiveXfsbrowsercallratelimitimportes2017specerrorexpressionfind-upES7HyBiTypeScriptconsoleaccessorECMAScript 2018toolkitmetadatatoobjectes2016includescommand-linelazyuninstallbannerchaideepcloneES2016reduceweakmapnumberboundmkdirstypeerrorObject.assignestreeextendquerystringes2015endpointprivatestyleguideintrinsicsimpledbinstallphonehelperUint16ArrayES2017createloadbalancingcommandmodulestimereact-testing-librarytelephonewarningpushexejsdiffconcurrencytypedarrayshrinkwrapstylinghelpersterminaldataeventsRxJSsettingsrmjsemojischeme-validationspringgetintrinsicformattingnpmmobilepackagees7globalsmulti-packageforEachsafelimitedtypeObject.iscallbindbddhasOwnPropertyInt16Arrayfiletyped arrayArray.prototype.findLastArrayBufferreact animationshelljapanese
5.9.129

10 months ago

5.9.131

10 months ago

5.9.130

10 months ago

1.1.28

1 year ago

2.2.50

1 year ago

3.6.79

12 months ago

5.8.124

10 months ago

5.8.123

10 months ago

3.3.57

1 year ago

3.5.79

12 months ago

3.3.58

1 year ago

3.5.78

12 months ago

3.3.59

1 year ago

3.5.77

12 months ago

3.7.99

11 months ago

3.5.76

12 months ago

3.5.75

12 months ago

3.7.97

11 months ago

3.5.74

12 months ago

3.7.98

11 months ago

3.5.73

12 months ago

3.3.53

1 year ago

3.3.54

1 year ago

3.3.55

1 year ago

3.3.56

1 year ago

2.1.28

1 year ago

3.5.72

12 months ago

3.7.96

11 months ago

3.5.71

12 months ago

3.5.70

12 months ago

3.3.60

1 year ago

3.3.61

1 year ago

2.1.29

1 year ago

2.1.38

1 year ago

2.1.39

1 year ago

2.1.36

1 year ago

2.1.37

1 year ago

2.1.34

1 year ago

2.1.35

1 year ago

2.1.32

1 year ago

2.1.33

1 year ago

2.3.53

1 year ago

2.1.30

1 year ago

2.3.52

1 year ago

2.1.31

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

2.3.51

1 year ago

2.3.50

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

5.9.128

10 months ago

5.9.127

10 months ago

5.9.124

10 months ago

3.8.111

11 months ago

2.1.41

1 year ago

1.0.22

1 year ago

3.8.112

11 months ago

1.0.21

1 year ago

5.9.126

10 months ago

3.8.113

10 months ago

1.0.20

1 year ago

5.9.125

10 months ago

3.8.114

10 months ago

2.1.40

1 year ago

3.8.115

10 months ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

3.5.69

12 months ago

3.5.68

12 months ago

3.5.67

12 months ago

3.5.66

12 months ago

3.5.65

1 year ago

3.5.64

1 year ago

4.8.120

10 months ago

4.8.116

10 months ago

4.8.117

10 months ago

4.8.115

10 months ago

3.7.100

11 months ago

4.8.118

10 months ago

4.8.119

10 months ago

3.7.107

11 months ago

3.7.108

11 months ago

3.7.105

11 months ago

3.7.106

11 months ago

3.6.89

11 months ago

3.7.103

11 months ago

3.6.88

11 months ago

3.7.104

11 months ago

3.6.87

11 months ago

3.7.101

11 months ago

3.6.86

11 months ago

3.7.102

11 months ago

3.6.85

11 months ago

3.4.61

1 year ago

3.4.62

1 year ago

3.4.63

1 year ago

3.4.64

1 year ago

3.7.109

11 months ago

4.8.123

10 months ago

4.8.121

10 months ago

4.8.122

10 months ago

3.7.110

11 months ago

3.6.84

12 months ago

3.7.111

11 months ago

3.6.83

12 months ago

3.6.82

12 months ago

3.6.81

12 months ago

3.6.80

12 months ago

3.6.96

11 months ago

2.2.48

1 year ago

2.2.49

1 year ago

2.2.46

1 year ago

2.2.47

1 year ago

2.2.44

1 year ago

2.2.45

1 year ago

3.6.95

11 months ago

2.2.42

1 year ago

3.6.94

11 months ago

2.2.43

1 year ago

3.6.93

11 months ago

3.6.92

11 months ago

2.2.41

1 year ago

3.6.91

11 months ago

3.6.90

11 months ago

1.0.15

1 year ago

1.0.11

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

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