Anywhere
check(value, pattern)
import { check } from 'meteor/check'
Source Check that a value matches a pattern. If the value does not match the pattern, throw a Match.Error
.
Particularly useful to assert that arguments to a function have the right types and structure.
Arguments
- value Any
-
The value to check
- pattern Match Pattern
-
The pattern to match
value
against
Please login to continue.