whole_func_string: function closest(array, value) {
  	  if (!is$1.array(array) || !array.length) {
  	    return null;
  	  }
  
  	  return array.reduce(function (prev, curr) {
  	    return Math.abs(curr - value) < Math.abs(prev - value) ? curr : prev;
  	  });
  	}
func_code_string: function closest(array, value) {
  	  if (!is$1.array(array) || !array.length) {
  	    return null;
  	  }
  
  	  return array.reduce(function (prev, curr) {
  	    return Math.abs(curr - value) < Math.abs(prev - value) ? curr : prev;
  	  });
  	}
func_documentation_string: Get the closest value in an array