starts-with.js 349 B

123456789
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var is_array_1 = require("./is-array");
  4. var is_string_1 = require("./is-string");
  5. function startsWith(arr, e) {
  6. return (is_array_1.default(arr) || is_string_1.default(arr)) ? arr[0] === e : false;
  7. }
  8. exports.default = startsWith;
  9. //# sourceMappingURL=starts-with.js.map