Skip to content

Commit

Permalink
Update version
Browse files Browse the repository at this point in the history
  • Loading branch information
ardalanamini committed Feb 11, 2019
1 parent 68b2695 commit 53afabf
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 7 deletions.
16 changes: 16 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1580,6 +1580,7 @@ Number.isNumber(2); // true
* [.$dig(target)](#Object+$dig) ⇒ <code>\*</code>
* [.$empty()](#Object+$empty)
* [.$equals(obj)](#Object+$equals)[<code>Boolean</code>](#Boolean)
* [.$flatten(obj)](#Object+$flatten)[<code>Object</code>](#Object)
* [.$forEach(fn)](#Object+$forEach)
* [.$get(key)](#Object+$get) ⇒ <code>\*</code>
* [.$invert()](#Object+$invert)[<code>Object</code>](#Object)
Expand Down Expand Up @@ -1709,6 +1710,21 @@ Performs a deep comparison between two values to determine if they are equivalen
```javascript
({ a: [2, { e: 3 }], b: [4], c: 'foo' }).$equals({ a: [2, { e: 3 }], b: [4], c: 'foo' }); // true
```
<a name="Object+$flatten"></a>

### object.$flatten(obj) ⇒ [<code>Object</code>](#Object)
Flattens the object into a single-depth object

**Kind**: instance method of [<code>Object</code>](#Object)

| Param | Type |
| --- | --- |
| obj | [<code>Object</code>](#Object) |

**Example**
```javascript
({ foo: 1, bar: { foo: 2 } }).$flatten(); // { foo: 1, "bar.foo": 2 }
```
<a name="Object+$forEach"></a>

### object.$forEach(fn)
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "prototyped.js",
"version": "0.21.0",
"version": "1.0.0",
"description": "Common typescript ready prototypes available in both es5 and es6",
"author": "Ardalan Amini <[email protected]> [https://github.com/ardalanamini]",
"author": "Ardalan Amini <[email protected]> [https://ardalanamini.com]",
"license": "MIT",
"homepage": "https://prototyped.js.org",
"repository": {
Expand Down
1 change: 0 additions & 1 deletion src/object/flatten/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ declare global {
* Flattens the object into a single-depth object
* @memberof Object.prototype
* @function $flatten
* @param {Object} obj
* @returns {Object}
* @example
* ({ foo: 1, bar: { foo: 2 } }).$flatten(); // { foo: 1, "bar.foo": 2 }
Expand Down

0 comments on commit 53afabf

Please sign in to comment.