UNPKG
go-fns
Version:
latest (1.0.0)
1.0.0
Utility functions for functions.
github.com/koyote130708/go-fns
koyote130708/go-fns
go-fns
/
src
/
filterFunctions.js
12 lines
(10 loc)
•
251 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
function
filterFunctions
(
fns
) {
var
filtered = [];
for
(
var
i =
0
; i < fns.
length
; i++) {
if
(
typeof
fns[i] ===
"function"
) { filtered.
push
(fns[i]); } }
return
filtered; }
module
.
exports
= filterFunctions;