UNPKG

@quenk/preconditions

Version:
18 lines (11 loc) 310 B
# Preconditions Make data satisfy constraints before using. ## Installation ```bash npm install --save @quenk/preconditions ``` ## Usage A precondition is a function that when applied to a value returns either a Failure or the final form of the value. ## License Apache-2.0 © Quenk Technologies Limited