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 @@ -28,11 +28,11 @@ import range from 'lodash/range';
28
28
import { isScoped , Scopable } from '../models' ;
29
29
30
30
/**
31
- * Composes two JSON pointer. Pointer1 is appended to pointer2 .
32
- * JSON pointer is seperated and start with '/' e.g: /foo/0
31
+ * Composes two JSON pointer. Pointer2 is appended to pointer1 .
32
+ * Example: pointer1 `'/foo/0'` and pointer2 `'/bar'` results in `' /foo/0/bar'`.
33
33
*
34
- * @param {string } pointer1 JSON pointer
35
- * @param {string } pointer2 JSON pointer
34
+ * @param {string } pointer1 Initial JSON pointer
35
+ * @param {string } pointer2 JSON pointer to append to `pointer1`
36
36
* @returns {string } resulting JSON pointer
37
37
*/
38
38
export const compose = ( pointer1 : string , pointer2 : string ) => {
You can’t perform that action at this time.
0 commit comments