joaom182 / linqjs Goto Github PK
View Code? Open in Web Editor NEWSimple LINQ library for JavaScript
License: MIT License
Simple LINQ library for JavaScript
License: MIT License
chrome Version 46.0.2489.0 canary (64-bit)
Uncaught TypeError: arr.where is not a function(anonymous function) @ linq.js:260Array.innerJoin @ linq.js:259(anonymous function) @ join.js:40(anonymous function) @ join.js:42
given this use:
const g1 = [{ "Name": "Alice", "Hair": "Blonde"},
{ "Name": "Bob", "Hair": "None"},
];
const g2 = [{ "Name": "Alice", "Hair": "Brown"},
{ "Name": "Bob", "Hair": "Brown"},
];
const tada = g1.innerJoin( e => e.Name, e => e.Name, (e1, e2) => ({ "Name": e1.Name, "Hair1": e1.Hair, "Hair2": e2.Hair }));
Even the Readme example not working.
Follow the error.
Uncaught ReferenceError: Predicate is not defined(โฆ)
Is this right?
[1, 2, 3].zip([4, 5, 6], (x, y) => { x, y });
This is yielding:
[undefined, undefined, undefined]
I don't think that's right?
Line 260 at context = context || global || window;
(IE 11 && FF 37.0.1)
And/or perhaps a version that includes a furnished predicate, default, etc.
Failed to execute "git ls-remote --tags --heads https://github.com/joaom182/linqjs.git", exit code of #128 fatal: unable to access 'https://github.com/joaom182/linqjs.git/': OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
how can i add a comparator in linq?
i might add ~= ... in the query
Hello,
I am trying to aggregate some table rows, literally <tr/>
in terms of an aggregate <table/>
.
Something, in fact, quite like this:
var rows = x.listing.select(function(x) { return $("<tr/>").append(x); });
table = rows.aggregate(table, function(table, row) { return table.append(row); });
Where table
was defined as:
var table = $("<table/>").appendTo(x.parentTd).toArray().first(); // or .single() if you prefer.
x
was a tuple that contained the Parent Cell in which the Table lands.
Listings are simply rendered Table Cells, hosted in dynamic Table Rows, which Rows I then want to aggregate in terms of the host Table.
Make sense? Anyway, this is causing an error during .aggregate
:
Uncaught TypeError: #<HTMLTableElement> is not a function
at Array.reduce (<anonymous>)
at tvseries.html:70
at Array.map (<anonymous>)
at MediaController.mediaCtrl.onListingsUpdated (tvseries.html:65)
at updateDates (media_ctrl.js:108)
at resetDates (media_ctrl.js:114)
at MediaController.setToday (media_ctrl.js:120)
at HTMLDivElement.open (tvseries.html:137)
at t.(anonymous function).(anonymous function)._trigger (http://localhost:81/downloads/scripts/jquery-ui/jquery-ui.min.js:6:11090)
at t.(anonymous function).(anonymous function).open (http://localhost:81/downloads/scripts/jquery-ui/jquery-ui.min.js:11:1193)
The stack trace is a bit deeper dive into my code than I'd like, but the point is, I think I should be able to aggregate the table rows into a table as such. At least if the parallels are there to C# LINQ, for instance.
Worst case, I can simply do a native iteration, but I like the LINQ way, if possible.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.