Skip to content

Mint.utils.isString

Tania Shatilova edited this page Nov 10, 2015 · 1 revision

The isString() method determines whether the tested object is string.

Syntax

var testedObject = "lorem impus";
var isString = Mint.utils.isString(testedObject);

Parameters

  • value - (object) An object for check.

Return Value

true if the tested object is string; otherwise, false.

Examples

Mint.utils.isString("lorem impus");  // true
Mint.utils.isString(12);             // false
Mint.utils.isString(function(){ });  // false
Mint.utils.isString(null);           // false
Mint.utils.isString([1, 2, 3]);      // false

Clone this wiki locally