type {}
type {}
type {}const type = Object.freeze({
are,
is,
guard
});Properties
are
areguard
guardis
isExample usage
Last updated
type {}const type = Object.freeze({
are,
is,
guard
});areguardisLast updated
// 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