Last updated 2 years ago
type {}
A frozen object that consists of is, are, and guard objects.
object
is
are
guard
const type = Object.freeze({ are, is, guard });
The object consists of are functions.
The object consists of guard functions.
The object 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