|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
273 bytes
|
| Line | |
|---|
| 1 | import _ from './underscore.js';
|
|---|
| 2 | import isArray from './isArray.js';
|
|---|
| 3 |
|
|---|
| 4 | // Normalize a (deep) property `path` to array.
|
|---|
| 5 | // Like `_.iteratee`, this function can be customized.
|
|---|
| 6 | export default function toPath(path) {
|
|---|
| 7 | return isArray(path) ? path : [path];
|
|---|
| 8 | }
|
|---|
| 9 | _.toPath = toPath;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.