Liferay.Loader.define("commerce-dashboard-web$d3-scale@2.2.2/src/identity", ['module', 'exports', 'require'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    import { map } from "./array";
    import { linearish } from "./linear";
    import number from "./number";

    export default function identity(domain) {
      var unknown;

      function scale(x) {
        return isNaN(x = +x) ? unknown : x;
      }

      scale.invert = scale;

      scale.domain = scale.range = function (_) {
        return arguments.length ? (domain = map.call(_, number), scale) : domain.slice();
      };

      scale.unknown = function (_) {
        return arguments.length ? (unknown = _, scale) : unknown;
      };

      scale.copy = function () {
        return identity(domain).unknown(unknown);
      };

      domain = arguments.length ? map.call(domain, number) : [0, 1];

      return linearish(scale);
    }
  }
});
//# sourceMappingURL=identity.js.map