mirror of
https://github.com/Oreolek/raconteur.git
synced 2024-05-01 16:39:21 +03:00
2-element arrays are fine too
This commit is contained in:
parent
b3a127be31
commit
cd4e4fa981
|
@ -136,7 +136,7 @@ var oneOf = function (...ary) {
|
|||
last;
|
||||
|
||||
if (ary.length<2) {
|
||||
if (Array.isArray(ary[0]) && ary[0].length > 2) {
|
||||
if (Array.isArray(ary[0]) && ary[0].length >= 2) {
|
||||
ary = ary[0]
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue