alt icon indicating copy to clipboard operation
alt copied to clipboard

dispatchIdentity rudely omit all params when the first one is undefined.

Open bukuta opened this issue 8 years ago • 0 comments

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
 }

bukuta avatar Jul 14 '17 03:07 bukuta