V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  13670515509  ›  全部回复第 1 页 / 共 1 页
回复总数  1
js
let obj = { 1: [A], 2: [B], 3: [A, B] }
obj[x] && Array.isArray(obj[x]) && obj[x].forEach(fn => {typeof fn === 'function' && fn()})
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   899 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 21:34 · PVG 05:34 · LAX 14:34 · JFK 17:34
♥ Do have faith in what you're doing.