golden hour
/home/phakp/public_html/wp/wp-content/themes/hestia/vendor/codeinwp/ti-onboarding/assets/vue/common
⬆️ Go Up
Upload
File/Folder
Size
Actions
common.js
383 B
Del
OK
Edit: common.js
const getInstallablePlugins = function (mandatory = {}, recommended = {}, defaultOff = []) { let plugins = [...Object.keys(recommended), ...Object.keys(mandatory)] plugins = plugins.reduce((o, key) => Object.assign(o, { [key]: true }), {}) defaultOff.forEach( function (offPlugin) { plugins[offPlugin] = false } ) return plugins } export { getInstallablePlugins }
Save