@rushstack/node-core-library
Advanced tools
Comparing version 3.64.2 to 3.65.0
@@ -130,3 +130,7 @@ /// <reference types="node" /> | ||
static readLinesFromIterable(iterable: Iterable<string | Buffer | null>, options?: IReadLinesFromIterableOptions): Generator<string>; | ||
/** | ||
* Returns a new string that is the input string with the order of characters reversed. | ||
*/ | ||
static reverse(s: string): string; | ||
} | ||
//# sourceMappingURL=Text.d.ts.map |
@@ -286,2 +286,9 @@ "use strict"; | ||
} | ||
/** | ||
* Returns a new string that is the input string with the order of characters reversed. | ||
*/ | ||
static reverse(s) { | ||
// Benchmarks of several algorithms: https://jsbench.me/4bkfflcm2z | ||
return s.split('').reduce((newString, char) => char + newString, ''); | ||
} | ||
} | ||
@@ -288,0 +295,0 @@ exports.Text = Text; |
{ | ||
"name": "@rushstack/node-core-library", | ||
"version": "3.64.2", | ||
"version": "3.65.0", | ||
"description": "Core libraries that every NodeJS toolchain project should use", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1175686
15214