let a = 1;
setTimeout(()=>{
let a = 10;
},1000)
const c = ()=>{}
const d = (a,b) => {
}
var a1 = (callback)=>{
setTimeout(()=>{
callback();
},1000)
}
var b1 = ()=>{
//...
}
a1(b1);
//promise
let a2 = ()=>{
return new Promise((resolve,project)=>{
setTimeout(()=>{
resolve();
},1000)
})
}
a1().then(b1)
const getVerifiedToken = selector => {
return getUsers()
.then(users => users[0])
.then(verifyUser)
.then((user, verifiedToken) => verifiedToken)
.catch(err => log(err.stack));
}
(...args) => args[0]
let ac = ()=>{
}
c1=(x)=> {
x +1
}
var foo = (x)=> {
x+1
}
var bar = {c2:1}
const square = x => x * x;
const full = ({ first, last }) => first + ' ' + last;
const has = p => o => o.hasOwnProperty(p);
const sortBy = p => (a, b) => a[p] > b[p];
const is = p => v => o => o.hasOwnProperty(p) && o[p] == v;
const add = x => y => y + x;
console