UNPKG
react-gbajs
Version:
latest (1.0.4)
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.0.1
0.0.1-alpha.v2
0.0.1-alpha.v1
GBA emulator and wrapper for React
github.com/macabeus/react-gbajs
macabeus/react-gbajs
react-gbajs
/
src
/
emulator
/
helpers
/
is-primitive.js
14 lines
(10 loc)
•
215 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const
isPrimitive = (
val
) => {
if
(
val
===
null
) {
return
true
; }
const
t = typeof
val
;
return
( t ===
'number'
|| t ===
'string'
|| t ===
'boolean'
|| t ===
'undefined'
); } export default isPrimitive;