Last change
on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
280 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | "use strict";
|
---|
| 2 |
|
---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
---|
| 4 | value: true
|
---|
| 5 | });
|
---|
| 6 | exports.default = getDecls;
|
---|
| 7 |
|
---|
| 8 | function getDecls(rule, properties) {
|
---|
| 9 | return rule.nodes.filter(({
|
---|
| 10 | prop
|
---|
| 11 | }) => prop && ~properties.indexOf(prop.toLowerCase()));
|
---|
| 12 | }
|
---|
| 13 |
|
---|
| 14 | module.exports = exports.default; |
---|
Note:
See
TracBrowser
for help on using the repository browser.