Returns input value of number or string.

This commit is contained in:
photonstorm 2017-08-04 16:14:41 +01:00
parent 71e1206f89
commit 54ffcc6391

View file

@ -4,7 +4,9 @@
var GetFastValue = function (source, key, defaultValue)
{
if (!source || typeof source === 'number')
var t = typeof(source);
if (!source || t === 'number' || t === 'string')
{
return defaultValue;
}