Passed
Pull Request — master (#127)
by Jan
01:49
created

src/util.js   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 7
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 2
mnd 0
bc 0
fnc 2
dl 0
loc 7
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
1
/**
2
 * @param {any} value
3
 * @returns {boolean} true if value is a function
4
 */
5
 module.exports.isFunction = (value) => typeof value === 'function'
6
7
 /**
8
  * @param {any} value
9
  * @returns  {boolean} true if value is a string
10
  */
11
 module.exports.isString = (value) => typeof value === 'string' || value instanceof String
12