JavaScriptメモ

caniuse

var a = "12345\
678";
// 12345678
"abc1234def".replace(/[^\d]+(\d+)/g, function(match, p1) {return "__" + p1 + "__";});
// "__1234__def"
"abc".replace(/([a-z])([a-z])/g, "$1-$2-");
// "a-b-c"
Math.ceil(4.3)
// 5
Math.floor(4.3)
// 4
`123\
45`
// => '12345'
let _b = {
    c: {
        d: 1
    }
};
let a = {
    get b() {
        return _b;
    }
};
console.log(a.b.c.d);
// => 1
[, a, b] = [1, 2, 3]
// a = 2
// b = 3
a = [1, 2, 3]
[...a]
// [1, 2, 3]
let { a = 1, b = 9 } = {b: 2}
// a = 1
// b = 2
function handler(event) {
    let file = event.target.files[0];
    let reader = new FileReader();
    reader.onload = function(e) {
        console.log(e.target.result);
    };
    reader.readAsDataURL(file);
}

Microsoft Edge Developer Guide
Microsoft Edge Platform status
Firefox Platform Status
WebKit Feature Status
Chrome Platform Status
ECMAScript compatibility table