MCPcopy
hub / github.com/webpack/webpack / splitAndConvert

Function splitAndConvert

lib/util/semver.js:24–29  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

22 * @returns {VersionValue[]} result
23 */
24 var splitAndConvert = function (str) {
25 return str.split(".").map(function (item) {
26 // eslint-disable-next-line eqeqeq
27 return +item == /** @type {string | number} */ (item) ? +item : item;
28 });
29 };
30
31 var match =
32 /** @type {RegExpExecArray} */

Callers 2

parseVersionFunction · 0.85
parsePartialFunction · 0.85

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected