UNPKG
plura
Version:
latest (0.7.0)
0.7.0
0.6.1
0.6.0
0.5.0
0.4.0
0.3.0
0.2.0
0.1.1
0.1.0
0.0.1
Super simple functional programming library
github.com/richie-south/fp-lib
richie-south/fp-lib
plura
/
src
/
isType.js
18 lines
(13 loc)
•
273 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const
isArray
= a =>
Array
.
isArray
(a)
const
isString
= s =>
typeof
s ===
'string'
const
isNumber
= n =>
typeof
n ===
'number'
const
isObject
= o =>
isArray
(o) ?
false
: o
instanceof
Object
module
.
exports
= { isArray, isString, isNumber, isObject, }