mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
Changeset: Use in
check to help TypeScript narrowing
This commit is contained in:
parent
4f4a775d9e
commit
1bbe0d9215
1 changed files with 1 additions and 1 deletions
|
@ -649,7 +649,7 @@ const textLinesMutator = (lines) => {
|
||||||
* @returns {string}
|
* @returns {string}
|
||||||
*/
|
*/
|
||||||
const linesGet = (idx) => {
|
const linesGet = (idx) => {
|
||||||
if (lines.get) {
|
if ('get' in lines) {
|
||||||
return lines.get(idx);
|
return lines.get(idx);
|
||||||
} else {
|
} else {
|
||||||
return lines[idx];
|
return lines[idx];
|
||||||
|
|
Loading…
Reference in a new issue