diff --git a/source/Ox/js/Type.js b/source/Ox/js/Type.js index 4b93f881..bd895ab7 100644 --- a/source/Ox/js/Type.js +++ b/source/Ox/js/Type.js @@ -4,10 +4,10 @@ Ox.checkType Throws a TypeError if a value is not of a given type (val, type) -> undefined val <*> Any value - type Type + type Type, or array of types @*/ Ox.checkType = function(val, type) { - if (!Ox.in(Ox.toArray(type), Ox.typeOf(val))) { + if (!Ox.in(Ox.makeArray(type), Ox.typeOf(val))) { throw new TypeError(); } };