Check

Check

The check package includes pattern checking functions useful for checking the types and structure of variables and an extensible library of patterns to specify which types you are expecting.

To add check (or Match) to your application, run this command in your terminal:

meteor add check

Anywhere
check
import { check } from 'meteor/check' (check/match.js, line 20)

Check that a value matches a pattern. If the value does not match the pattern, throw a Match.Error.

登录查看完整内容