Last updated 3 years ago
Was this helpful?
type {}
A frozen that consists of is, , and objects.
is
const type = Object.freeze({ are, is, guard });
are
The consists of are functions.
guard
The consists of guard functions.
The consists of is functions.
// Example usage. import { type } from '@angular-package/type'; // `is` functions type.is.boolean(true); // true, value is boolean type.is.array(true); // false, value is any[] // `guard` functions type.guard.number(3); // true, value is number
object