Skip to content

Instantly share code, notes, and snippets.

View oikwsat's full-sized avatar
🇯🇵

Satoshi Oikawa oikwsat

🇯🇵
View GitHub Profile
module.exports = {
build: (elements) => {
// デバイスタイプを取得(存在しない場合はmobile)
const device = process.env.DEVICE || 'mobile';
// 整形すべきものはobjectでなくてはならない
if (typeof elements !== 'object') {
throw new Error('Invalid Argument');
}