1.5.5 • Published 4 years ago

@toba/node-tools v1.5.5

Weekly downloads
19
License
MIT
Repository
github
Last release
4 years ago

npm package Build Status Code style Dependencies DevDependencies Test Coverage

Toba Node Tools

Utility methods with Node dependencies.

Identity

import { is } from '@toba/tools';

Identity checks evaluate whether a variable is of a given type. All return true or false. Where possible, they implement TypeScript type guards so the value is thereafter recognized as a particular type.

value

is.value(x);

Whether x is not undefined and not null.

The parameter is generic so the variable may thereafter be recognized as that type. For example, if is.value<string>(var) evaluates true then TypeScript will also know to treat var as a string.

empty

is.empty(x);

Whether x is undefined, null or an empty string ("").

defined

is.defined(x, name);

Whether name is a property of the object x.

Caching

stuff

License

Copyright © 2019 Jason Abbott

This software is licensed under the MIT license. See the LICENSE file accompanying this software for terms of use.

1.5.5

4 years ago

1.5.4

4 years ago

1.5.3

4 years ago

1.5.2

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.4.19

4 years ago

1.4.17

4 years ago

1.4.16

4 years ago

1.4.18

4 years ago

1.4.15

4 years ago

1.4.14

4 years ago

1.4.13

4 years ago

1.4.12

5 years ago

1.4.11

5 years ago

1.4.10

5 years ago

1.4.9

5 years ago

1.4.8

5 years ago

1.4.7

5 years ago

1.4.6

5 years ago

1.4.5

5 years ago

1.4.4

5 years ago

1.4.3

5 years ago

1.4.2

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago