Created
March 19, 2019 10:51
-
-
Save kitcat-dev/edc9ffd861cf39fa2eef0bc345ad5c52 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Получает значения всех вложенных объектов из объекта со вложенными массивами и объектами | |
| * @param {Object} obj - Корневой объект | |
| * @returns {Array} Возвращает массив путей ко всем примитивам, вложенным в объект, вместе с путем до них | |
| * @example | |
| * // 'baz', 'foo', '' | |
| * rootObject: { | |
| * 30: { value: "baz" } | |
| * 31: [ [ { value: "foo" } ], [ { value: "" } ] ] | |
| * } | |
| */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment