UNPKG
bute
Version:
latest (0.0.4)
1.0.0
0.0.4
0.0.2
0.0.1
The complete distribution solution for NodeJS
github.com/schahriar/bute
schahriar/bute
bute
/
lib
/
warden.js
13 lines
(11 loc)
•
301 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
var
_ =
require
(
"lodash"
);
module
.
exports
= {
check
:
function
(
address, whiteList
) {
return
_.
chain
(whiteList) .
pluck
(
'ip'
) .
filter
(
function
(
whiteListedAddress
) {
return
(whiteListedAddress === address); }) .
value
(); } }