string.ify
string.ify copied to clipboard
Hope to provide a way of printing a part of an object
source:
const o = [1,2,3,4,5,6,7,8,9,10]
console.log(stringify.configure({
maxLength: 0,
maxArrayLength: 5,
fancy: false,
})(o))
output:
<array[10]>
hope like this:
[
1,
2,
3,
4,
5,
...more<5>
]