UNPKG
verify-it
Version:
latest (2.4.0)
next (2.3.0-rc1)
2.4.0
2.3.3
2.3.2
2.3.1
2.3.0
2.3.0-rc1
2.2.0
2.1.0
2.0.1
2.0.0
1.2.1
1.1.0
1.0.1
1.0.0
Randomised test property/data generation for NodeJS
github.com/bbc/verify-it
bbc/verify-it
verify-it
/
src
/
function
/
enumerateFunctions.js
8 lines
(5 loc)
•
191 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
'use strict'
const
enumerateFunctions
= (
object
) => {
return
Object
.
getOwnPropertyNames
(
object
).
filter
(
(
name
) =>
typeof
object
[name] ===
'function'
) }
module
.
exports
= enumerateFunctions