function foo() {}
var bar = foo <| function() {};
This is the first time I’ve seen something like this. What does <| mean?
Source: https://github.com/allenwb/ESnext-experiments/blob/master/ST80collections-exp1.js
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Now that you have posted the link to the source, you can see in the comments at the top of the file exactly what it does (line 36):
Update: I’ve just remembered this question as I came across the full ECMAScript Harmony proposal for this “literal [[Prototype]] operator”. There is a lot more information in there than in the quote above, so it’s worth a read.