Oaty can now be initialised with new OatyArray<T>() so that .get , .data, and .transposed return data of type T. This is completely optional as T defaults to any.
Removed missingKeyReturns and noResultsReturns options.
Exported a new type for the _transposed property.
Expanded the ternary conditions to improve readability.
Made the data constructor param optional and default to [].
When a key is not transposed and .get searches for that key, it will now throw a ReferenceError.
new OatyArray<T>()
so that.get
,.data
, and.transposed
return data of typeT
. This is completely optional asT
defaults toany
.missingKeyReturns
andnoResultsReturns
options._transposed
property.data
constructor param optional and default to[]
..get
searches for that key, it will now throw aReferenceError
.