You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
446 B
10 lines
446 B
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
var tslib_1 = require("tslib");
|
|
var is_array_1 = tslib_1.__importDefault(require("./is-array"));
|
|
var is_string_1 = tslib_1.__importDefault(require("./is-string"));
|
|
function endsWith(arr, e) {
|
|
return (0, is_array_1.default)(arr) || (0, is_string_1.default)(arr) ? arr[arr.length - 1] === e : false;
|
|
}
|
|
exports.default = endsWith;
|
|
//# sourceMappingURL=ends-with.js.map
|