MCPcopy Index your code
hub / github.com/requirejs/requirejs / parse

Function parse

tests/plugins/indexBuilder.js:3–14  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

1(function () {
2
3 function parse(name) {
4 var parts = name.split('?'),
5 index = parseInt(parts[0], 10),
6 choices = parts[1].split(':'),
7 choice = choices[index];
8
9 return {
10 index: index,
11 choices: choices,
12 choice: choice
13 };
14 }
15
16 define({
17 normalize: function (name, normalize) {

Callers 1

indexBuilder.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…