Skip to content

prefixed

Toke Voltelen edited this page Dec 3, 2016 · 4 revisions

prefixed(str)

Adds vendor prefixes to a string.

Parameters

  • str (String) - The string to add vendor prefixes to
  • returns (Array<String>) - An array of the string with prefixes

Usage

import prefixed from 'vanillajs-browser-helpers/prefixed';

prefixed('matches'); // -> ['webkitMatches', 'mozMatches', 'msMatches', 'oMatches']
Clone this wiki locally