Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. const unknownArrayProps = ([
  2. item1,
  3. item2,
  4. ...array // Can't put a comma here.
  5. ]) => {
  6. // Do some processing...
  7. } // No semicolon needed.
  8.  
  9. const unknownFunctionArgs = (
  10. pressCount,
  11. pressType,
  12. ...args // Can't put a comma here.
  13. ) => {
  14. // Do some processing...
  15. } // No semicolon needed.
  16.  
  17. const unknownObjectProps = ({
  18. pressCount,
  19. pressType,
  20. ...props // Can't put a comma here.
  21. }) => {
  22. // Do some processing...
  23. } // No semicolon needed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement