UNPKG

type-route

Version:

The flexible, type safe routing library.

12 lines (9 loc) 165 B
export function typeOf(value: any) { if (value === null) { return "null"; } if (Array.isArray(value)) { return "array"; } return typeof value; }