This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
v1.1.1 - Because testing is hard
mithril-objectify
now understands the following signature:
m(".foo", [ 1, 2, 3 ].map(function(val) { return m("p", val); }));
Which is another step towards optimizing every little thing that is safe to statically optimize! Right now it's limited to the subset of Array.prototype
methods that return an array, so concat
, filter
, map
, reverse
, slice
, sort
, splice
will all be optimized. Let me know if I missed one!
npm i mithril-objectify
will get you the latest release!
v1.1.1
is a patched version of v1.1.0
, which actually included all the above array fun but also included Issue #6, so v.1.1.1
is the clearly superior version!