UNPKG
faye
Version:
latest (1.4.1)
1.4.1
1.4.0
1.3.0
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.3
1.1.2
1.1.1
1.1.0
1.0.4
1.0.3
1.0.1
1.0.0
0.8.11
0.8.9
0.8.8
0.8.6
0.8.5
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
0.7.2
0.7.1
0.7.0
0.6.8
0.6.7
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
Simple pub/sub messaging for the web
faye.jcoglan.com
faye/faye
faye
/
src
/
util
/
validate_options.js
11 lines
(8 loc)
•
229 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
'use strict'
;
var
array =
require
(
'./array'
);
module
.
exports
=
function
(
options, validKeys
) {
for
(
var
key
in
options) {
if
(array.
indexOf
(validKeys, key) <
0
)
throw
new
Error
(
'Unrecognized option: '
+ key); } };