You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -79,6 +86,7 @@ import { ArrayWithDefault } from "https://cdn.skypack.dev/@humanwhocodes/array-w
79
86
After importing, create a new instance of `ArrayWithDefault`. The constructor expects one object argument with the following properties:
80
87
81
88
*`default`**(required)** - the default value to return for the missing items.
89
+
* Note: can be a callback: `(index: number) => any`
82
90
*`elements` - an optional iterable object used to populate the array.
83
91
*`length` - an optional value to set the array's `length` property to.
84
92
*`outOfRange` - an optional value that, when set to `true`, indicates that numeric indices after the end of the array should also return the default value.
0 commit comments