Files
rspade_system/node_modules/postcss-merge-longhand/src/lib/getLastNode.js
2025-12-03 21:28:08 +00:00

8 lines
292 B
JavaScript
Executable File

'use strict';
/** @type {(rule: import('postcss').AnyNode[], prop: string) => import('postcss').Declaration} */
module.exports = (rule, prop) => {
return /** @type {import('postcss').Declaration} */ (
rule.filter((n) => n.type === 'decl' && n.prop.toLowerCase() === prop).pop()
);
};