S-array
S-array copied to clipboard
Utility methods for working with arrays in S.js
Hey Adam, would it be possible to add a `Symbol.iterator` property for better interop? For example, with SArrays the following fails with a `.map() is not iterable` error: ```javascript const...
```js var = SArray([]); console.log(arr.length); // 1 arr.push("abc"); console.log(arr.length); // 1 ``` Solution would be probably to fix the returned number or remove the .length accessor.
fixes https://github.com/adamhaile/S-array/issues/8
Hello again :) In newer environments there are methods such as `.flatMap` and whatnot - could these possibly be supported?
I would like to update a signal in an array in-place at an index, analogous to `array[index] = value` with a standard array. I haven't found a way to do...
from _index.d.ts_: ```ts export interface SArray {... } export interface SDataArray extends SArray ``` I would proffered this be written as: ```ts export interface SArray extends ReadonlyArray { // only...
Context: I'm using S.js/SArray in a Surplus application, with a lot of async updates (via socket.io). I'm trying to par down the number of DOM updates, specifically with code that...
Hi Adam, It would be nice if `.map` would provide the index value as the second argument to its callback, _or_ that the documentation clearly states that contrarily to `Array::map`,...