8000 correct examples for Map.getIn (#1460) · CrazyPython/immutable-js@ba16b26 · GitHub
[go: up one dir, main page]

Skip to content

Commit ba16b26

Browse files
Christian Ostkozlitinaelja
Christian Ost
authored andcommitted
correct examples for Map.getIn (immutable-js#1460)
1 parent 273ec43 commit ba16b26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

type-definitions/Immutable.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3821,7 +3821,7 @@ declare module Immutable {
38213821
* ```js
38223822
* const { Map, List } = require('immutable')
38233823
* const deepData = Map({ x: List([ Map({ y: 123 }) ]) });
3824-
* getIn(deepData, ['x', 0, 'y']) // 123
3824+
* deepData.getIn(['x', 0, 'y']) // 123
38253825
* ```
38263826
*
38273827
* Plain JavaScript Object or Arrays may be nested within an Immutable.js
@@ -3831,7 +3831,7 @@ declare module Immutable {
38313831
* ```js
38323832
* const { Map, List } = require('immutable')
38333833
* const deepData = Map({ x: [ { y: 123 } ] });
3834-
* getIn(deepData, ['x', 0, 'y']) // 123
3834+
* deepData.getIn(['x', 0, 'y']) // 123
38353835
* ```
38363836
*/
38373837
getIn(searchKeyPath: Iterable<any>, notSetValue?: any): any;

0 commit comments

Comments
 (0)
0