isStringy

  • function
 

Using the same rules as getStringSafely returns true if a string can be safely coerced, false if not.

Lang.isStringy(thing)

Using the same rules as getStringSafely returns true if a string can be safely coerced, false if not.

Parameters

  1. thing

    {String|Object} thing to be tested.

Returns

{Boolean}

true if it can be safely coerced into a string. false if not.