UNPKG

phaser4-rex-plugins

Version:
12 lines (9 loc) 327 B
import Diff from './base'; export const arrayDiff = new Diff(); arrayDiff.tokenize = function(value) { return value.slice(); }; arrayDiff.join = arrayDiff.removeEmpty = function(value) { return value; }; export function diffArrays(oldArr, newArr, callback) { return arrayDiff.diff(oldArr, newArr, callback); }