xdash / keys
Function: keys()
keys<
T
>(obj
): keyofT
[]
Gets the keys of an object.
Type parameters
• T extends object
Parameters
• obj: T
object to check
Returns
keyof T
[]
true if the value is a number, false otherwise
xdash / keys
keys<
T
>(obj
): keyofT
[]
Gets the keys of an object.
• T extends object
• obj: T
object to check
keyof T
[]
true if the value is a number, false otherwise