es6
未读
如何确保构造函数只能被 new 调用
function Person() {
if (!new.target) {
throw new TypeError('Error');
}
}
console.log(new Person()); new.target属性,该属性一般用在构造函数之中,返回 new 命令作用于的
flatMap 解决嵌套数组删除指定对象
JavaScript中数组的flatMap方法的详细介绍删除嵌套数据const arr = [ { "id": "Erlebniskategorien", "title": "Erlebniska