Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getVariationByKey(key: string): Variation | null {
return find(this._variations, variation => variation.key === key) || null
}
getVariationById(id: string): Variation | null {
return find(this._variations, variation => variation.id === id) || null
}
}