ends-with.js 356 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 endsWith(arr, e) {
  6. return (is_array_1.default(arr) || is_string_1.default(arr)) ? arr[arr.length - 1] === e : false;
  7. }
  8. exports.default = endsWith;
  9. //# sourceMappingURL=ends-with.js.map