0a5ab058a6
- Angular 12 application with PrimeNG components - 5 existing Cypress e2e test suites - SCSS styling with BEM naming convention - i18n support (10 languages) - Leaflet map integration - Complete component hierarchy and routing structure This baseline will be used for Angular → React migration.
16 lines
638 B
JavaScript
16 lines
638 B
JavaScript
'use strict';
|
|
|
|
var $TypeError = require('es-errors/type');
|
|
var isInteger = require('math-intrinsics/isInteger');
|
|
var callBound = require('call-bound');
|
|
|
|
var $slice = callBound('String.prototype.slice');
|
|
|
|
// https://262.ecma-international.org/12.0/#substring
|
|
module.exports = function substring(S, inclusiveStart, exclusiveEnd) {
|
|
if (typeof S !== 'string' || !isInteger(inclusiveStart) || (arguments.length > 2 && !isInteger(exclusiveEnd))) {
|
|
throw new $TypeError('`S` must be a String, and `inclusiveStart` and `exclusiveEnd` must be integers');
|
|
}
|
|
return $slice(S, inclusiveStart, arguments.length > 2 ? exclusiveEnd : S.length);
|
|
};
|