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 > “isString”

External module: “isString”

Index

Functions


Functions

isString

isString(obj: any): boolean

Defined in isString.ts:16

Is the given object of type String

isString('string'); // -> true
isString(123); // -> false

Parameters:

Param Type Description
obj any Object to test

Returns: boolean