Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
get aspectRatio() {
return Some(this.width / this.height);// eslint-disable-line babel/new-cap
}
}
const when = condition => o => condition ? Some(o) : None();// eslint-disable-line babel/new-cap
const whenAllowOriginal = when(neosConfiguration.allowOriginal && image.aspectRatio);
.bind(aspectRatio => aspectRatio.toFixed(2) === image.aspectRatio.toFixed(2) ? Some(o) : None());// eslint-disable-line babel/new-cap