Finally import id from UnitJS.Fun

This commit is contained in:
Tissevert 2022-10-02 19:40:51 +02:00
parent 213eec19fe
commit c411ffbcac

View file

@ -1,12 +1,10 @@
import id from UnitJS.Fun;
return { return {
make: make, make: make,
Int: make({toKey: id, ofKey: parseInt}) Int: make({toKey: id, ofKey: parseInt})
}; };
function id(x) {
return x;
}
function make(type) { function make(type) {
type = type ?? {toKey: id, ofKey: id}; type = type ?? {toKey: id, ofKey: id};