UNPKG
holyfills
Version:
latest (1.0.1)
1.0.1
1.0.0
No more "Holy Sxxt!!" when writting ES5/ES6
github.com/tomchentw/holyfills
tomchentw/holyfills
holyfills
/
lib
/
helpers
/
isPrimitive.js
13 lines
(11 loc)
•
220 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
"use strict"
;
module
.
exports
=
function
(
input
) {
var
type
=
typeof
input;
return
( input ===
null
||
type
===
"undefined"
||
type
===
"boolean"
||
type
===
"number"
||
type
===
"string"
); };