Finally import id from UnitJS.Fun
This commit is contained in:
parent
213eec19fe
commit
c411ffbcac
1 changed files with 2 additions and 4 deletions
|
@ -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};
|
||||
|
||||
|
|
Loading…
Reference in a new issue