File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,11 @@ import isEmpty from 'lodash/isEmpty';
27
27
import range from 'lodash/range' ;
28
28
29
29
/**
30
- * Composes two JSON pointer. Pointer1 is appended to pointer2 .
31
- * JSON pointer is seperated and start with '/' e.g: /foo/0
30
+ * Composes two JSON pointer. Pointer2 is appended to pointer1 .
31
+ * Example: pointer1 `'/foo/0'` and pointer2 `'/bar'` results in `' /foo/0/bar'`.
32
32
*
33
- * @param {string } pointer1 JSON pointer
34
- * @param {string } pointer2 JSON pointer
33
+ * @param {string } pointer1 Initial JSON pointer
34
+ * @param {string } pointer2 JSON pointer to append to `pointer1`
35
35
* @returns {string } resulting JSON pointer
36
36
*/
37
37
export const compose = ( pointer1 : string , pointer2 : string ) => {
You can’t perform that action at this time.
0 commit comments