1.0.7 • Published 7 years ago

@tonyonodi/check v1.0.7

Weekly downloads
4
License
MIT
Repository
-
Last release
7 years ago

Check

A package for dynamically checking that data matches the criteria you expect it to.

Predicate

In Check a predicate is a pure function that takes in a value and returns true or false depending on whether or not the value passed the predicate's test.

For Example

const isGreaterThan5Pred = x => typeof x === "number" && x > 5;

Check

A Check, takes in a single value, tests it against one or more predicates and returns the value if all predicates return true or throws a CheckError if any return false.

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago