-
Notifications
You must be signed in to change notification settings - Fork 0
Mint.utils.isString
Tania Shatilova edited this page Nov 10, 2015
·
1 revision
The isString() method determines whether the tested object is string.
var testedObject = "lorem impus";
var isString = Mint.utils.isString(testedObject);- value - (object) An object for check.
true if the tested object is string; otherwise, false.
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