Skip to content

Commit a20ac2a

Browse files
jerchTooTallNate
authored andcommitted
define a toString function (#17)
* Update array.js * Update array.js
1 parent 2c2bb3f commit a20ac2a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/array.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ module.exports = function Array (_type, _length) {
152152

153153
// untilZeros() function
154154
ArrayType.untilZeros = untilZeros
155+
156+
ArrayType.toString = function() { return '[ArrayType]';}
155157

156158
return ArrayType
157159
}

0 commit comments

Comments
 (0)