ESCSS-ESTest Error (production demo)

Open DevTools (F12) to check error message.
(Check out in development)

type TYPES = 'undefined' | 'null' | 'array' | 'object' | 'boolean' | 'NaN' | 'number' | 'bigint' | 'string' | 'symbol' | 'function'

declare function ESTest(input: unknown, type: TYPES, errMsg?: string): void

ESTest()

ESTest(999, 'number', 123)

ESTest(999, 'string', 'escss-estest library, any feed back to ...')

ESTest(NaN, 'number')

ESTest([1, 2, [3, 4], { a: 1, b: { c: 2 } }, null, undefined], 'number')

ESTest(null, 'number')

ESTest(undefined, 'number')

ESTest(999, 'null')

ESTest(foo, 'number')

ESTest(true, 'number')

ESTest({ a: 1, b: { b1: 2 }, c: [1, 2, [3, 4], null, undefined]}, 'number')

ESTest(10n, 'number')

ESTest(Symbol("foo"), 'number')

ESTest(function foo() { console.log(123)}, 'number')