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

ECMA 6 - Test Arrow function #120

Open
emravera opened this issue Apr 16, 2018 · 0 comments
Open

ECMA 6 - Test Arrow function #120

emravera opened this issue Apr 16, 2018 · 0 comments

Comments

@emravera
Copy link
Collaborator

Generate suites for:

// Expression bodies

odds  = evens.map(v => v + 1)
pairs = evens.map(v => ({ even: v, odd: v + 1 }))
nums  = evens.map((v, i) => v + i)

// Statement bodies
nums.forEach(v => {
   if (v % 5 === 0)
       fives.push(v)
}) 

// Lexical this inside arrow
this.nums.forEach((v) => {
    if (v % 5 === 0)
        this.fives.push(v)
})

More information at:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant