Skip to content

Commit

Permalink
define a toString function (TooTallNate#17)
Browse files Browse the repository at this point in the history
* Update array.js

* Update array.js
  • Loading branch information
jerch authored and TooTallNate committed Sep 25, 2017
1 parent 2c2bb3f commit a20ac2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/array.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ module.exports = function Array (_type, _length) {

// untilZeros() function
ArrayType.untilZeros = untilZeros

ArrayType.toString = function() { return '[ArrayType]';}

return ArrayType
}
Expand Down

0 comments on commit a20ac2a

Please sign in to comment.