tera icon indicating copy to clipboard operation
tera copied to clipboard

return null for first, last, nth on error

Open sooda opened this issue 5 years ago • 2 comments

Instead of empty string, return null value that's considered undefined (and can be piped to the default filter) if the array is empty for the filters first, last and nth. For nth, also change the out-of-bounds value from empty string to null.

Closes #534, and is a breaking change.

sooda avatar Jul 22 '20 20:07 sooda

Thanks!

Keats avatar Jul 23 '20 09:07 Keats

(Found some related uncommitted changes on documentation, so force-pushed a new revision not to forget them.)

sooda avatar Aug 11 '20 20:08 sooda