Finally import id from UnitJS.Fun

This commit is contained in:
Tissevert 2022-10-02 19:40:51 +02:00
parent 213eec19fe
commit c411ffbcac
1 changed files with 2 additions and 4 deletions

View File

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