How to use the monet.Some function in monet

To help you get started, we’ve selected a few monet examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github neos / neos-ui / packages / neos-ui-editors / src / SecondaryEditors / ImageCropper / model.js View on Github external
get aspectRatio() {
        return Some(this.width / this.height);// eslint-disable-line babel/new-cap
    }
}
github neos / neos-ui / packages / neos-ui-editors / src / SecondaryEditors / ImageCropper / model.js View on Github external
    const when = condition => o => condition ? Some(o) : None();// eslint-disable-line babel/new-cap
    const whenAllowOriginal = when(neosConfiguration.allowOriginal && image.aspectRatio);
github neos / neos-ui / packages / neos-ui-editors / src / SecondaryEditors / ImageCropper / model.js View on Github external
        .bind(aspectRatio => aspectRatio.toFixed(2) === image.aspectRatio.toFixed(2) ? Some(o) : None());// eslint-disable-line babel/new-cap