3 ms·
Done, it ended like this : switch (typeof value) { case 'string': return 'str' ; case 'number': return 'num'; case 'object': return 'obj';
by nicolasme 15y ago
Done, it ended like this :
switch (typeof value) {
case 'string':
return 'str' ;
case 'number':
return 'num';
case 'object':
return 'obj';
default: return "other";
}
return value;
}
Thanks a lot :)