-
Notifications
You must be signed in to change notification settings - Fork 86
/
is.js
35 lines (33 loc) · 791 Bytes
/
is.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
const R = require('../../dist/rambda.js')
const Ramda = require('ramda')
const is = [
{
label: 'Rambda',
fn: () => {
R.is(Array, undefined)
R.is(Array)([])
R.is(Boolean, new Boolean(false))
R.is(Date, new Date())
R.is(Function, () => {})
R.is(Number, new Number(0))
R.is(Object, {})
R.is(RegExp, /(?:)/)
R.is(String, new String(''))
},
},
{
label: 'Ramda',
fn: () => {
Ramda.is(Array, undefined)
Ramda.is(Array)([])
Ramda.is(Boolean, new Boolean(false))
Ramda.is(Date, new Date())
Ramda.is(Function, () => {})
Ramda.is(Number, new Number(0))
Ramda.is(Object, {})
Ramda.is(RegExp, /(?:)/)
Ramda.is(String, new String(''))
},
},
]
module.exports = is