Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Missing wrap() in the Array.of extension.

  • Loading branch information...
commit 09fb9440db83c529fc01e10b7e9028af6cf08439 1 parent d108713
@molnarg authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/extensions/Array.js
View
2  lib/extensions/Array.js
@@ -60,7 +60,7 @@ Array.of = function() {
// (minLength, maxLength, schema)
var args = Array.prototype.slice.call(arguments).reverse()
if (args.length === 2) args[2] = args[1]
- return new ArraySchema(Schema.fromJS(args[0]), args[1], args[2])
+ return new ArraySchema(Schema.fromJS(args[0]), args[1], args[2]).wrap()
}
Array.like = function(other) {
Please sign in to comment.
Something went wrong with that request. Please try again.