|
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:
308 bytes
|
| Line | |
|---|
| 1 | var underscore = require('./underscore.js');
|
|---|
| 2 | var isArray = require('./isArray.js');
|
|---|
| 3 |
|
|---|
| 4 | // Normalize a (deep) property `path` to array.
|
|---|
| 5 | // Like `_.iteratee`, this function can be customized.
|
|---|
| 6 | function toPath(path) {
|
|---|
| 7 | return isArray(path) ? path : [path];
|
|---|
| 8 | }
|
|---|
| 9 | underscore.toPath = toPath;
|
|---|
| 10 |
|
|---|
| 11 | module.exports = toPath;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.