1
0
Fork 0
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:
Alexander Yakovlev 2015-12-01 17:40:49 +07:00
parent b3a127be31
commit cd4e4fa981

View file

@ -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 {