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:
466 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 |
|
---|
3 | Object.defineProperty(exports, "__esModule", {
|
---|
4 | value: true
|
---|
5 | });
|
---|
6 | exports.default = getRules;
|
---|
7 |
|
---|
8 | var _getLastNode = _interopRequireDefault(require("./getLastNode"));
|
---|
9 |
|
---|
10 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
---|
11 |
|
---|
12 | function getRules(props, properties) {
|
---|
13 | return properties.map(property => {
|
---|
14 | return (0, _getLastNode.default)(props, property);
|
---|
15 | }).filter(Boolean);
|
---|
16 | }
|
---|
17 |
|
---|
18 | module.exports = exports.default; |
---|
Note:
See
TracBrowser
for help on using the repository browser.