admin 管理员组

文章数量: 1086019

Here's my goal: pare two objects and figure out if there is 1 or more items in mon. If there are 1 or more in mon, return true otherwise (no items in mon), return false.

Current issues: I'm trying to use the .some() method with 1 object from an API and 1 object that's local, but a bit confused why it's not working...any ideas? It should return true since John is in both objects, but it returns false

本文标签: javascriptCheck if two arrays have an object with the same propertyStack Overflow