vanillajs-helpers

Collection of convenience code snippets (helpers) that aims to make it a little easier to work with vanilla JS

View the Project on GitHub Tokimon/vanillajs-helpers

vanillajs-helpers > “isObject”

External module: “isObject”

Index

Functions


Functions

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