Giter VIP home page Giter VIP logo

linqjs's People

Contributors

aluanhaddad avatar dependabot[bot] avatar joaom182 avatar shenlanchenwei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

linqjs's Issues

Uncaught TypeError: arr.where is not a function

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 }));

Problem with RemoveAll

Even the Readme example not working.

Follow the error.

Uncaught ReferenceError: Predicate is not defined(โ€ฆ)

Zip returning list of undefined

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?

'global' undefined

Line 260 at context = context || global || window;
(IE 11 && FF 37.0.1)

Request for .single

And/or perhaps a version that includes a furnished predicate, default, etc.

question

how can i add a comparator in linq?

i might add ~= ... in the query

Error during .aggregate

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.