福岡やることリスト
- えせけんをベロベロに酔わせて大濠公園に捨てる
- んえその部屋にキックペダルを仕込む
- くねくねイルカを見る
福岡やることリスト
- えせけんをベロベロに酔わせて大濠公園に捨てる
- んえその部屋にキックペダルを仕込む
- くねくねイルカを見る
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
こんな感じのやつ?
const func = (obj, path, value) => {
const keys = path.split(".");
keys.reduce((o, k, i) => {
if (i === keys.length - 1) {
o[k] = value;
} else {
o[k] = o[k] || {};
}
return o[k];
}, obj);
return obj;
};