mirror of https://github.com/n2geoff/um
slow types?!
This commit is contained in:
parent
0f41c64cc3
commit
e9b736dec3
2
jsr.json
2
jsr.json
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "@n2geoff/um",
|
||||
"version": "0.2.0",
|
||||
"version": "0.2.1",
|
||||
"exports": "./src/index.js"
|
||||
}
|
|
@ -23,7 +23,7 @@ export default function app(opts) {
|
|||
*
|
||||
* @param {*} value
|
||||
* @param {String} type
|
||||
* @returns value|String
|
||||
* @returns {*}
|
||||
*/
|
||||
function check(value, type) {
|
||||
return typeof value === typeof type ? value : type;
|
||||
|
|
Loading…
Reference in New Issue