diff --git a/src/get.ts b/src/get.ts index be059d3..8c62ff4 100644 --- a/src/get.ts +++ b/src/get.ts @@ -16,7 +16,7 @@ * This allows you to either get the nested value * or return a default value if a nothing is found * - * ```js + * ``` * const value = get({a:1},"a") //=> 1 * const value = get({a:1},"b") //=> undefined * const value = get({a:1},"b",2) //=> 2 diff --git a/src/set.ts b/src/set.ts index 6de2114..52d84ae 100644 --- a/src/set.ts +++ b/src/set.ts @@ -12,7 +12,7 @@ * walker to set the value of deeply nested inside * the object, this modifies the original object * so use it carefully - * ```js + * ``` * const obj = {a:1} * set(obj,"b",10) * get(obj,"b") //=> 10