UNPKG

el-beeswarm

Version:

<div style="display: flex; padding: 1rem; flex-direction: column; align-items: center; justify-content: center; height: 100vh; text-align: center; display: flex;

22 lines (18 loc) 422 B
'use strict'; /** * Check whether a property is SCSS variable * * @param {string} property * @returns {boolean} */ module.exports = function (property) { // SCSS var (e.g. $var: x), list (e.g. $list: (x)) or map (e.g. $map: (key:value)) if (property.startsWith('$')) { return true; } // SCSS var within a namespace (e.g. namespace.$var: x) if (property.includes('.$')) { return true; } return false; };