|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
400 bytes
|
| Rev | Line | |
|---|
| [9af201e] | 1 | /**
|
|---|
| 2 | * This method returns a new empty object.
|
|---|
| 3 | *
|
|---|
| 4 | * @static
|
|---|
| 5 | * @memberOf _
|
|---|
| 6 | * @since 4.13.0
|
|---|
| 7 | * @category Util
|
|---|
| 8 | * @returns {Object} Returns the new empty object.
|
|---|
| 9 | * @example
|
|---|
| 10 | *
|
|---|
| 11 | * var objects = _.times(2, _.stubObject);
|
|---|
| 12 | *
|
|---|
| 13 | * console.log(objects);
|
|---|
| 14 | * // => [{}, {}]
|
|---|
| 15 | *
|
|---|
| 16 | * console.log(objects[0] === objects[1]);
|
|---|
| 17 | * // => false
|
|---|
| 18 | */
|
|---|
| 19 | function stubObject() {
|
|---|
| 20 | return {};
|
|---|
| 21 | }
|
|---|
| 22 |
|
|---|
| 23 | module.exports = stubObject;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.