Files
supplier-dispatch-h5/node_modules/postcss-merge-longhand/src/lib/getLastNode.js
2023-08-11 10:45:20 +08:00

8 lines
292 B
JavaScript

'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()
);
};