moy-dom
Version:
A flexiable Virtual DOM library for building modern web interface.
14 lines • 380 B
JavaScript
/**
* [append append a child to a list]
* @param {[Any]} newItem [child]
* @param {[Array]} simulateList [list]
* @param {[Object]} changes [changes]
* @return {[undefined]} [undefined]
*/
export default function append(newItem, simulateList, changes){
simulateList.push(newItem) //no valid
changes.push({
type: 3,
item: newItem,
})
}