tree-helper

WebJar for tree-helper

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

tree-helper
Последняя версия

Последняя версия

1.0.5
Дата

Дата

Тип

Тип

jar
Описание

Описание

tree-helper
WebJar for tree-helper
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/phphe/tree-helper

Скачать tree-helper

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/tree-helper/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>tree-helper</artifactId>
    <version>1.0.5</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/tree-helper/
implementation 'org.webjars.npm:tree-helper:1.0.5'
// https://jarcasting.com/artifacts/org.webjars.npm/tree-helper/
implementation ("org.webjars.npm:tree-helper:1.0.5")
'org.webjars.npm:tree-helper:jar:1.0.5'
<dependency org="org.webjars.npm" name="tree-helper" rev="1.0.5">
  <artifact name="tree-helper" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='tree-helper', version='1.0.5')
)
libraryDependencies += "org.webjars.npm" % "tree-helper" % "1.0.5"
[org.webjars.npm/tree-helper "1.0.5"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : helper-js jar [1.0.47,2)

Модули Проекта

Данный проект не имеет модулей.

tree-helper

js functions, just import needed functions.
js 方法库, 按需使用

// install
npm install tree-helper -S

usage 使用

import {function1, function2} from 'tree-helper'

some functions. pls check source to get more 常用方法, 请查看源码获取更多方法

// depth first search; 深度优先遍历
depthFirstSearch(obj, handler, childrenKey = 'children', reverse)
- handler(item, i, parent)
    return false // break loop
    return 'skip children' // skip children
    return 'skip siblings' // skip siblings
// breadth first search; 广度优先遍历
breadthFirstSearch(obj, handler, childrenKey = 'children', reverse)
- handler(item, i, parent)
    return false // break loop
    return 'skip children' // skip children
    return 'skip siblings' // skip siblings

Версии библиотеки

Версия
1.0.5