6.6.131 • Published 12 months ago

@womorg/autem-tempora-rem v6.6.131

Weekly downloads
-
License
MIT
Repository
github
Last release
12 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 @womorg/autem-tempora-rem

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( '@womorg/autem-tempora-rem' );

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( '@womorg/autem-tempora-rem' );

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.

@womorg/architecto-hic-sunt@womorg/deleniti-nostrum-et@womorg/deleniti-velit-voluptas@womorg/est-suscipit-quisquam@womorg/et-magni-consequatur@womorg/ipsum-quos-similique@womorg/quod-odit-assumenda@womorg/labore-tempora-recusandae@womorg/laborum-voluptates-molestias@womorg/porro-laboriosam-quod@womorg/adipisci-enim-illum@womorg/aspernatur-quisquam-ipsam@womorg/dolor-accusamus-fugit@womorg/fugiat-animi-libero@womorg/harum-fugiat-illo@womorg/hic-deserunt-voluptas@womorg/neque-eum-quia@womorg/nostrum-nulla-laboriosam@womorg/porro-impedit-suscipit@womorg/perferendis-unde-impedit@womorg/recusandae-eveniet-quos@womorg/dolorum-harum-explicabo@womorg/doloribus-quasi-in@womorg/illo-ea-maxime@womorg/illo-earum-eveniet@womorg/mollitia-quaerat-repellat@womorg/necessitatibus-cupiditate-fugit@womorg/neque-earum-aspernatur@womorg/quibusdam-tenetur-ratione@womorg/accusantium-commodi-officia@womorg/blanditiis-ipsum-maxime@womorg/consequuntur-consequatur-accusamus@womorg/cum-dolorem-corrupti@womorg/eos-blanditiis-excepturi@womorg/enim-nisi-vero@womorg/illum-aut-ut@womorg/ipsam-sint-eaque@womorg/omnis-laborum-asperiores@womorg/occaecati-ducimus-laboriosam@womorg/aperiam-ullam-accusamus@womorg/blanditiis-fugiat-reprehenderit@womorg/aut-laboriosam-accusantium@womorg/ducimus-officia-voluptatum@womorg/ea-laborum-magnam@womorg/excepturi-dolorem-illum@womorg/exercitationem-atque-voluptatem@womorg/quidem-assumenda-amet@womorg/quis-doloribus-maxime@womorg/repudiandae-dolorum-unde@womorg/sed-nihil-quos@womorg/similique-illo-dolorem@womorg/totam-expedita-quas@womorg/vitae-tenetur-pariatur@womorg/voluptatem-voluptatibus-illum@womorg/voluptates-vero-occaecati@womorg/totam-commodi-ratione@womorg/temporibus-corporis-omnis@womorg/tempora-maxime-voluptates@womorg/totam-eum-ipsum@womorg/ullam-perspiciatis-excepturi@womorg/ut-dolorem-corrupti@womorg/ut-qui-iste
6.6.122

12 months ago

6.6.121

12 months ago

6.6.124

12 months ago

6.6.123

12 months ago

6.6.126

12 months ago

6.6.125

12 months ago

6.6.128

12 months ago

6.6.127

12 months ago

6.6.129

12 months ago

6.6.131

12 months ago

6.6.130

12 months ago

6.6.115

12 months ago

6.6.117

12 months ago

6.6.116

12 months ago

6.6.119

12 months ago

6.6.118

12 months ago

6.6.120

12 months ago

4.6.114

12 months ago

4.6.115

12 months ago

4.6.112

1 year ago

4.6.113

1 year ago

4.6.109

1 year ago

4.6.107

1 year ago

4.6.108

1 year ago

4.6.106

1 year ago

5.6.115

12 months ago

4.6.110

1 year ago

4.6.111

1 year ago

4.6.105

1 year ago

4.6.103

1 year ago

4.6.104

1 year ago

3.6.100

1 year ago

3.6.101

1 year ago

4.6.101

1 year ago

4.6.102

1 year ago

3.6.99

1 year ago

3.6.98

1 year ago

3.6.97

1 year ago

3.6.96

1 year ago

3.5.95

1 year ago

3.5.94

1 year ago

3.6.95

1 year ago

3.4.94

1 year ago

3.4.91

1 year ago

3.4.92

1 year ago

3.4.93

1 year ago

3.4.87

1 year ago

3.4.88

1 year ago

3.4.89

1 year ago

3.4.90

1 year ago

3.4.83

1 year ago

3.4.84

1 year ago

3.4.85

1 year ago

3.4.86

1 year ago

3.4.80

1 year ago

3.4.81

1 year ago

3.4.82

1 year ago

3.4.77

1 year ago

3.4.78

1 year ago

3.4.79

1 year ago

3.4.73

1 year ago

3.4.74

1 year ago

3.4.75

1 year ago

3.4.76

1 year ago

3.4.47

1 year ago

3.4.48

1 year ago

3.4.49

1 year ago

3.3.38

1 year ago

3.3.39

1 year ago

3.4.40

1 year ago

3.4.41

1 year ago

3.4.42

1 year ago

3.4.43

1 year ago

3.4.44

1 year ago

3.4.45

1 year ago

3.4.46

1 year ago

3.4.58

1 year ago

3.4.59

1 year ago

3.4.50

1 year ago

3.4.51

1 year ago

3.4.52

1 year ago

3.3.40

1 year ago

3.4.53

1 year ago

3.4.54

1 year ago

3.4.55

1 year ago

3.4.56

1 year ago

3.4.57

1 year ago

2.3.38

1 year ago

2.3.37

1 year ago

3.4.69

1 year 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.4.65

1 year ago

3.4.66

1 year ago

3.4.67

1 year ago

3.4.68

1 year ago

3.4.60

1 year ago

3.4.72

1 year ago

3.4.70

1 year ago

3.4.71

1 year ago

2.3.36

1 year ago

2.3.35

1 year ago

2.3.34

1 year ago

2.3.33

1 year ago

2.3.32

1 year ago

2.2.31

1 year ago

2.2.30

1 year ago

2.3.31

1 year ago

1.2.19

1 year ago

1.2.20

1 year ago

1.2.23

1 year ago

1.2.21

1 year ago

1.2.22

1 year ago

2.2.28

1 year ago

2.2.29

1 year ago

2.2.26

1 year ago

2.2.27

1 year ago

2.2.24

1 year ago

2.2.25

1 year ago

2.2.23

1 year ago

1.2.18

1 year ago

1.2.17

1 year ago

1.2.13

1 year ago

1.2.16

1 year ago

1.2.14

1 year ago

1.2.15

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.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