5.0.12 • Published 12 months ago

util-array-object-or-both v5.0.12

Weekly downloads
272
License
MIT
Repository
github
Last release
12 months ago

Install

This package is pure ESM. If you're not ready yet, install an older version of this program, 3.1.0 (npm i util-array-object-or-both@3.1.0).

npm i util-array-object-or-both

Quick Take

import { strict as assert } from "assert";

import { arrObjOrBoth } from "util-array-object-or-both";

// normalises string, a user preference:

assert.equal(arrObjOrBoth("arrays"), "array");
assert.equal(arrObjOrBoth("array"), "array");
assert.equal(arrObjOrBoth("arr"), "array");
assert.equal(arrObjOrBoth("a"), "array");

assert.equal(arrObjOrBoth("objects"), "object");
assert.equal(arrObjOrBoth("object"), "object");
assert.equal(arrObjOrBoth("obj"), "object");
assert.equal(arrObjOrBoth("o"), "object");

assert.equal(arrObjOrBoth("whatever"), "any");
assert.equal(arrObjOrBoth("either"), "any");
assert.equal(arrObjOrBoth("both"), "any");
assert.equal(arrObjOrBoth("any"), "any");
assert.equal(arrObjOrBoth("all"), "any");
assert.equal(arrObjOrBoth("e"), "any");

Documentation

Please visit codsen.com for a full description of the API.

Contributing

To report bugs or request features or assistance, raise an issue on GitHub.

Licence

MIT License.

Copyright © 2010-2024 Roy Revelt and other contributors.

5.0.12

12 months ago

5.0.11

1 year ago

5.0.9

1 year ago

5.0.10

1 year ago

5.0.8

2 years ago

5.0.7

2 years ago

5.0.6

2 years ago

5.0.5

2 years ago

5.0.4

2 years ago

5.0.3

2 years ago

5.0.2

2 years ago

5.0.1

2 years ago

5.0.0

2 years ago

4.2.3

2 years ago

4.2.2

2 years ago

4.2.5

2 years ago

4.2.4

2 years ago

4.2.6

2 years ago

4.2.1

2 years ago

4.2.0

2 years ago

4.1.3

2 years ago

4.1.0

3 years ago

4.1.2

3 years ago

4.1.1

3 years ago

4.0.10

3 years ago

4.0.12

3 years ago

4.0.11

3 years ago

4.0.5

3 years ago

4.0.7

3 years ago

4.0.6

3 years ago

4.0.4

3 years ago

4.0.3

3 years ago

4.0.2

3 years ago

4.0.1

3 years ago

4.0.0

3 years ago

3.1.0

4 years ago

3.0.16

4 years ago

3.0.15

4 years ago

3.0.14

4 years ago

3.0.13

4 years ago

3.0.12

4 years ago

3.0.11

4 years ago

3.0.10

4 years ago

3.0.9

4 years ago

3.0.8

4 years ago

3.0.7

4 years ago

3.0.6

4 years ago

3.0.5

4 years ago

3.0.4

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.8.0

4 years ago

2.7.68

4 years ago

2.7.67

4 years ago

2.7.66

4 years ago

2.7.65

4 years ago

2.7.64

4 years ago

2.7.63

4 years ago

2.7.62

4 years ago

2.7.61

4 years ago

2.7.60

5 years ago

2.7.59

5 years ago

2.7.58

5 years ago

2.7.57

5 years ago

2.7.56

5 years ago

2.7.55

5 years ago

2.7.54

5 years ago

2.7.53

5 years ago

2.7.52

5 years ago

2.7.51

5 years ago

2.7.50

5 years ago

2.7.49

5 years ago

2.7.48

5 years ago

2.7.47

5 years ago

2.7.46

5 years ago

2.7.45

5 years ago

2.7.44

5 years ago

2.7.43

5 years ago

2.7.42

5 years ago

2.7.41

5 years ago

2.7.40

5 years ago

2.7.39

5 years ago

2.7.38

5 years ago

2.7.37

5 years ago

2.7.36

5 years ago

2.7.35

5 years ago

2.7.34

5 years ago

2.7.33

5 years ago

2.7.32

5 years ago

2.7.31

5 years ago

2.7.29

5 years ago

2.7.28

5 years ago

2.7.27

5 years ago

2.7.26

6 years ago

2.7.25

6 years ago

2.7.24

6 years ago

2.7.23

6 years ago

2.7.22

6 years ago

2.7.21

6 years ago

2.7.20

6 years ago

2.7.19

6 years ago

2.7.18

6 years ago

2.7.17

6 years ago

2.7.16

6 years ago

2.7.15

6 years ago

2.7.14

6 years ago

2.7.13

6 years ago

2.7.12

6 years ago

2.7.9

6 years ago

2.7.8

6 years ago

2.7.7

6 years ago

2.7.6

6 years ago

2.7.5

6 years ago

2.7.4

6 years ago

2.7.3

6 years ago

2.7.2

6 years ago

2.7.0

6 years ago

2.6.3

6 years ago

2.6.2

6 years ago

2.6.1

6 years ago

2.6.0

6 years ago

2.3.7

6 years ago

2.3.6

6 years ago

2.3.5

6 years ago

2.3.4

6 years ago

2.3.3

6 years ago

2.3.2

6 years ago

2.3.1

6 years ago

2.3.0

6 years ago

2.2.1

7 years ago

2.2.0

7 years ago

2.1.0

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago