Collection of convenience code snippets (helpers) that aims to make it a little easier to work with vanilla JS
vanillajs-helpers > “isObject”
► isObject(obj: any
): boolean
Defined in isObject.ts:19
Is the given object of type String
class Obj {}
isObject({}); // -> true
isObject(new Obj()); // -> true
isObject('123'); // -> false
Parameters:
Param | Type | Description |
---|---|---|
obj | any |
Object to test |
Returns: boolean