UNPKG
@commitlint/ensure
Version:
latest (19.8.1)
19.8.1
19.8.0
19.5.0
19.0.3
19.0.0
18.6.1
18.6.0
18.4.4
18.4.3
18.4.0
18.1.0
18.0.0
17.8.1
17.6.7
17.4.4
17.4.0
17.3.0
17.0.0
16.2.1
16.0.0
15.0.0
14.1.0
14.0.0
13.2.0
13.1.0
13.0.0
12.1.4
12.1.3
12.1.2
12.1.1
12.0.1
12.0.0
11.0.0
10.0.0
9.1.2
9.1.1
9.1.0
9.0.1
9.0.0
8.3.6
8.3.4
8.3.0
8.2.0
8.1.0
8.0.0
7.6.0
7.5.2
7.5.0
7.3.1
7.3.0
7.2.0
7.1.2
7.1.1
7.1.0
7.0.0
6.1.3
6.1.2
6.1.1
6.1.0
6.0.4
6.0.3
6.0.2
6.0.0
5.2.8
Lint your commit messages
commitlint.js.org
conventional-changelog/commitlint
@commitlint/ensure
/
lib
/
enum.js
12 lines
•
313 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
default
=
(
value, enums = []
) =>
{
if
(value ===
undefined
) {
return
false
; }
if
(!
Array
.
isArray
(enums)) {
return
false
; }
return
enums.
indexOf
(value) > -
1
; };
//# sourceMappingURL=enum.js.map