vanillajs-browser-helpers
Version:
Collection of convenience code snippets (helpers) that aims to make it a little easier to work with vanilla JS in the browser
13 lines (12 loc) • 357 B
TypeScript
export interface VendorPrefixing {
prefix: 'webkit' | 'moz' | 'ms' | 'o';
js: string;
css: string;
}
/**
* Add vendor prefixes to a string
*
* @param str - String to add vendor prefixes to
* @return Array of the various vendor vendorPrefixed versions of the string
*/
export default function vendorPrefixed(str: string): VendorPrefixing[];