Get the default preset

node v10.24.1
version: 1.0.0
endpointsharetweet
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