From 51c8081a2f63ec6ddd2dc213305c98eba559c9fd Mon Sep 17 00:00:00 2001 From: Christian Ost Date: Thu, 14 Dec 2017 13:54:42 +0100 Subject: [PATCH] correct examples for Map.getIn --- type-definitions/Immutable.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/type-definitions/Immutable.d.ts b/type-definitions/Immutable.d.ts index 9a66449a1a..2808841723 100644 --- a/type-definitions/Immutable.d.ts +++ b/type-definitions/Immutable.d.ts @@ -3800,7 +3800,7 @@ declare module Immutable { * ```js * const { Map, List } = require('immutable') * const deepData = Map({ x: List([ Map({ y: 123 }) ]) }); - * getIn(deepData, ['x', 0, 'y']) // 123 + * deepData.getIn(['x', 0, 'y']) // 123 * ``` * * Plain JavaScript Object or Arrays may be nested within an Immutable.js @@ -3810,7 +3810,7 @@ declare module Immutable { * ```js * const { Map, List } = require('immutable') * const deepData = Map({ x: [ { y: 123 } ] }); - * getIn(deepData, ['x', 0, 'y']) // 123 + * deepData.getIn(['x', 0, 'y']) // 123 * ``` */ getIn(searchKeyPath: Iterable, notSetValue?: any): any;