UNPKG
es5-ext
Version:
latest (0.10.64)
0.10.64
0.10.63
0.10.62
0.10.61
0.10.60
0.10.59
0.10.58
0.10.57
0.10.56
0.10.55
0.10.54
0.10.53
0.10.52
0.10.51
0.10.50
0.10.49
0.10.48
0.10.47
0.10.46
0.10.45
0.10.44
0.10.43
0.10.42
0.10.41
0.10.40
0.10.39
0.10.38
0.10.37
0.10.36
0.10.35
0.10.34
0.10.33
0.10.32
0.10.31
0.10.30
0.10.29
0.10.28
0.10.27
0.10.26
0.10.25
0.10.24
0.10.23
0.10.22
0.10.21
0.10.20
0.10.19
0.10.18
0.10.17
0.10.16
0.10.15
0.10.14
0.10.13
0.10.12
0.10.11
0.10.10
0.10.9
0.10.8
0.10.7
0.10.6
0.10.5
0.10.4
0.10.3
0.10.2
0.10.1
0.9.2
0.9.1
0.9.0
0.8.2
0.8.1
0.8.0
0.7.1
0.7.0
0.6.3
0.6.2
0.6.1
0.6.0
0.5.1
0.5.0
0.4.0
0.3.0
0.2.1
0.2.0
0.1.0
ECMAScript extensions and shims
github.com/medikoo/es5-ext
medikoo/es5-ext
es5-ext
/
iterable
/
validate-object.js
10 lines
(7 loc)
•
256 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
"use strict"
;
var
isObject =
require
(
"../object/is-object"
) , is =
require
(
"./is"
);
module
.
exports
=
function
(
value
) {
if
(
is
(value) &&
isObject
(value))
return
value;
throw
new
TypeError
(value +
" is not an iterable or array-like object"
); };