raymondcamden’s avatarraymondcamden’s Twitter Archive—№ 61,742

  1. I've got a vuex action where I do context.state.someArray.findIndex() and it is consistently running ONE time and not iterating over the array and not properly passing an array instance in. Is this expected?
    1. …in reply to @raymondcamden
      Ah, thank you magic of "Ask on Twitter and find it a second later."
    2. …in reply to @raymondcamden
      A bit of code: if(context.state.feeds.findIndex((feed) => { console.log('comp '+feed.rsslink+' to '+data.url); return (feed.rsslink === data.url); }) >= 0) { reject('URL already exists'); in the snippet above, feed is undefined