Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_findAtom(atomName) {
let atom = detect(this.atoms, atom => atom.name === atomName);
return atom || this._createUnknownAtom(atomName);
}
_findCard(cardName) {
let card = detect(this.cards, card => card.name === cardName);
return card || this._createUnknownCard(cardName);
}