19 lines
381 B
JavaScript
19 lines
381 B
JavaScript
![]() |
// Both functions below should be formatted exactly the same
|
||
|
|
||
|
function f() {
|
||
|
if (position)
|
||
|
return {name: pair};
|
||
|
else
|
||
|
return {name: pair.substring(0, position), value: pair.substring(position + 1)};
|
||
|
}
|
||
|
|
||
|
function f() {
|
||
|
if (position)
|
||
|
return {name: pair};
|
||
|
else
|
||
|
return {
|
||
|
name: pair.substring(0, position),
|
||
|
value: pair.substring(position + 1)
|
||
|
};
|
||
|
}
|