UNPKG

matrix-map

Version:

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

10 lines (7 loc) 206 B
const replaceChainFromID = function(id, val, noCall){ let chain = this.getChainFromID(id) chain.forEach(c => { this.setValueOfID(c, val, noCall) }) } export default replaceChainFromID