How to use the format.is function in format

To help you get started, we’ve selected a few format 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 lepture / ed / index.js View on Github external
(function(button) {
        if (format.is(button.name)) {
          classes(button).add('ed-button-active');
        } else {
          classes(button).remove('ed-button-active');
        }
      })(buttons[i]);
    }
github lepture / ed / build / build.js View on Github external
(function(name) {
        if (format.is(name)) {
          format(name);
        }
      })(spanformats[i]);
    }
github lepture / ed / build / build.js View on Github external
(function(button) {
        if (format.is(button.name)) {
          classes(button).add('ed-button-active');
        } else {
          classes(button).remove('ed-button-active');
        }
      })(buttons[i]);
    }