Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
Get the default preset
node v10.24.1
version:
1.0.0
endpoint
share
tweet
To get the default preset call create() function without parameters.
const defaultPreset = require('@bem/sdk.naming.presets/create')();
Check that origin preset is default.
const originPreset = require('@bem/sdk.naming.presets/origin'); if (defaultPreset === originPreset) { console.log('Origin is default preset now.'); }
Loading…
no comments
sign in
to comment