Skip to content

Instantly share code, notes, and snippets.

View randallknutson's full-sized avatar

Randall Knutson randallknutson

View GitHub Profile
@randallknutson
randallknutson / update-1.0.0.js
Last active August 29, 2015 14:25 — forked from zackurben/gist:1f2df3092e3547a199e0
Update formio database to version 1.0.0
/**
* Simple utility function to resize an array after elements have been removed.
*
* @param arr
* The array to resize.
* @returns {Array}
*/
var resizeArray = function(arr) {
if (!(arr instanceof Array)) {
return [];