function _slicedToArray(arr, i) {
            return (
              _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest()
            );
          }
Gets the current URL params as an Object. Note: when using the
p5 Editor, this will return an empty object because the sketch
is embedded in an iframe. It will work correctly if you view the
sketch using the editor's present or share URLs.
@method getURLParams
@return {Object} URL params
@example
<div class='norender notest'>
<code>
// Example: http://p5js.org?year=2014&month=May&day=15

function setup() {
  let params = getURLParams();
  text(params.day, 10, 20);
  text(params.month, 10, 40);
  text(params.year, 10, 60);
}
</code>
</div>

@alt
This example does not render anything.