Code Monkey home page Code Monkey logo

Comments (8)

getify avatar getify commented on May 18, 2024

Agreed.

If you can short-circuit my research on this, are there any exceptions (like some methods that are not, or some TypedArray's that don't)?

from es-feature-tests.

allenwb avatar allenwb commented on May 18, 2024

The only methods excluded from Array.prototype of those that change the length of the array:
concat, pop, push, shift, splice, unshift

all methods are available on all typed arrays

from es-feature-tests.

getify avatar getify commented on May 18, 2024

Thanks!

from es-feature-tests.

getify avatar getify commented on May 18, 2024

clarification: concat(..) isn't a mutator, so it's safe, right? Does it get on the TypedArray prototypes?

from es-feature-tests.

allenwb avatar allenwb commented on May 18, 2024

right concat isn't a mutator, but it was also excluded because it would be hard to reliably precompute the fixed size of the result typed array object.

Another feature point is the availability of from and of on the typed array constructors.

from es-feature-tests.

getify avatar getify commented on May 18, 2024

@allenwb

How do these look?

18d9d89#diff-d3a5aa62a9c556f382860a6ea31c11f7R59

from es-feature-tests.

allenwb avatar allenwb commented on May 18, 2024

Looks good, I might also test for 'sort' just because it is one of the more interesting methods and requires more implementation work than just moving over the Array.prototype method

from es-feature-tests.

getify avatar getify commented on May 18, 2024

thanks!

from es-feature-tests.

Related Issues (20)

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.