Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bukuta opened this issue Jul 14, 2017 · 0 comments
Open

Comments

@bukuta
Copy link

bukuta commented Jul 14, 2017

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
 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant