function steps(steps) {
  if ( steps === void 0 ) steps = 10;

  return function (t) { return Math.round(t * steps) * (1 / steps); };
}
function steps(steps) {
  if ( steps === void 0 ) steps = 10;

  return function (t) { return Math.round(t * steps) * (1 / steps); };
}
function steps ( steps ) { if ( steps === void 0 ) steps = 10 ; return function ( t ) { return Math . round ( t * steps ) * ( 1 / steps ) ; } ; }
Basic steps easing implementation https://developer.mozilla.org/fr/docs/Web/CSS/transition-timing-function
Basic steps easing implementation https : // developer . mozilla . org / fr / docs / Web / CSS / transition - timing - function
Returns a function that will return a function that will return a number of steps