question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Alias of -> just ?

See original GitHub issue

RxJS version: 5.5.2 Code to reproduce:

like renamed operators in rxjs/operators

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
rgbkrkcommented, Nov 2, 2017

Wow this is an amusing one. While of is not a keyword it is a built in, for use in for of loops. You can do some silly things with the fact that of can be assigned. It doesn’t change the semantics of a for(x of ...) though.

> var of = "yep"
undefined
> for(y of [1,2,3]) { console.log(y) }
1
2
3
undefined
> of
'yep'

since of is a valid variable name:

> of = [1,2,3]
[ 1, 2, 3 ]
> for(of of of) { console.log(of) }
1
2
3
0reactions
lock[bot]commented, Jun 6, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Display or create a command alias - IBM
If you specify –x without any names on the command line, alias displays all exported aliases. Only exported aliases are passed to a...
Read more >
about Aliases - PowerShell | Microsoft Learn
An alias is an alternate name or nickname for a cmdlet or for a command element, such as a function, script, file, or...
Read more >
Alias Definition & Meaning - Dictionary.com
a false name used to conceal one's identity; an assumed name: The police files indicate that “Smith” is an alias for Simpson.
Read more >
Alias Definition & Meaning - Merriam-Webster
The meaning of ALIAS is otherwise called : otherwise known as —used to indicate an additional name that a person (such as a...
Read more >
About aliases - AWS Key Management Service
An alias is an independent AWS resource. An alias is not a property of a KMS key. The actions that you take on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found