UNPKG

matrix-map

Version:

A class object for to aid in the creation of 2D grid games.

11 lines (9 loc) 227 B
const destroyChainFromID = function(id){ let chain = this.getChainFromID(id); if (chain.size > 1) { chain.forEach(c => { this.deleteValueOfID(c) }) } } export default destroyChainFromID