Skip to main content
variable prefix
import { prefix } from "https://deno.land/x/30_seconds_of_typescript@v1.0.1/util.ts";

Returns the prefixed version (if necessary) of a CSS property that the browser supports.

Use Array.prototype.findIndex() on an array of vendor prefix strings to test if document.body has one of them defined in its CSSStyleDeclaration object, otherwise return null. Use String.prototype.charAt() and String.prototype.toUpperCase() to capitalize the property, which will be appended to the vendor prefix string.

type

(prop: string) => unknown