ljharb on master
[eslint config] [base] [patch] … [eslint config] [patch] extend … Merge pull request #1996 from r… (compare)
ljharb on master
[editorial] [react] fix typo [eslint config] [*] [deps] upda… (compare)
const addPepperoniToPizza = arr => {
let result = arr.map((ele) => {
if (arr.indexOf(ele.includes("pepperoni"))) {
arr.push("pepperoni")
}
return ele;
})
return result;
}
console.log(addPepperoniToPizza(['onions', 'olives', 'pineapple']));
arr
, and worse, you're doing it while you're iterating over it.
Heya, I need to replace this object
klass {
lockScalingX: true,
lockScalingY: true,
lockMovementX: true,
lockMovementY: true,
originX: 'center',
originY: 'center',
centeredRotation: false,
}
To this
{
lockScalingX: true,
lockScalingY: true,
lockMovementX: true,
lockMovementY: true,
originX: 'center',
originY: 'center',
centeredRotation: false,
}
Need to remove klass. How can i do it?
background
(or background-image
) can be transitioned "painlessly" for FF, IE and the likes? it seems ages passed since webkit browsers started supporting this, but still no sign of native support for gecko and the .. ehrm others with the I word :D