|
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:
552 bytes
|
| Line | |
|---|
| 1 | var arrayFilter = require('./_arrayFilter'),
|
|---|
| 2 | isFunction = require('./isFunction');
|
|---|
| 3 |
|
|---|
| 4 | /**
|
|---|
| 5 | * The base implementation of `_.functions` which creates an array of
|
|---|
| 6 | * `object` function property names filtered from `props`.
|
|---|
| 7 | *
|
|---|
| 8 | * @private
|
|---|
| 9 | * @param {Object} object The object to inspect.
|
|---|
| 10 | * @param {Array} props The property names to filter.
|
|---|
| 11 | * @returns {Array} Returns the function names.
|
|---|
| 12 | */
|
|---|
| 13 | function baseFunctions(object, props) {
|
|---|
| 14 | return arrayFilter(props, function(key) {
|
|---|
| 15 | return isFunction(object[key]);
|
|---|
| 16 | });
|
|---|
| 17 | }
|
|---|
| 18 |
|
|---|
| 19 | module.exports = baseFunctions;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.