alt
alt copied to clipboard
dispatchIdentity rudely omit all params when the first one is undefined.
I just fall in the hole these days.
https://github.com/goatslacker/alt/blob/master/src/utils/AltUtils.js#L54-L57
export function dispatchIdentity(x, ...a) {
if (x === undefined) return null
return a.length ? [x].concat(a) : x
}