document.oncontextmenu = true;
document.onselectstart = true;
() => {
// some big function stuff
};
_ => {
// some big function stuff
};
handleInputChange = e => {
const { value } = e.target;
clearTimeout(this.timeout);
this.timeout = setTimeout(() => this.fetchUsers(value), 1000);
};
(_, props) => props.id;
const {
reducer,
actions,
selectors,
api,
actionTypes,
} = generateCrudBoilerplate(
'products',
{
getList: () => `/api/products`,
getOne: id => `/api/product/${id}`,
add: payload => `/api/product/`,
remove: id => `/api/product/${id}`,
edit: (id, payload) => `/api/product/${id)`,
}
);
class Node {
constructor(data) {
this.data = data;
this.prev = null;
this.next = null;
}
}
Array.prototype.forEach.call(arguments, data => this.add(data));
return new Promise(function(resolve) {
setTimeout(function() {
opacity -= 0.1;
console.log(opacity);
resolve(userFadeout2(el,delay,opacity.toFixed(1)));
},delay);
});