byte = Byte::TYPE char = Character::TYPE short = Short::TYPE int = Integer::TYPE long = Long::TYPE float = Float::TYPE double = Double::TYPE boolean = Boolean::TYPE |
|
e.g.
byte(-126) ==> new Byte(0x82) int("123") ==> new Integer(123) double("123.456") ==> new Double(123.456) char(65) ==> 'A' string([1,2,3]) ==> "[1, 2, 3]"
|
isArray checks if the object is an array. isFunction checks if the object is a function. When narg is specified checks if it is a function with narg parameters. instanceof does the same as Java.
e.g.
isArray([1, 2]) ==> true isArray(null) ==> false