UNPKG

postcss-merge-longhand

Version:

Merge longhand properties into shorthand with PostCSS.

16 lines (14 loc) 230 B
/** * @template T * @param {Set<T>} set * @return {T} */ function lastOf(set) { /** @type {T | undefined} */ let last; for (const x of set) { last = x; } return /** @type {T} */ (last); } export default lastOf;