Code Monkey home page Code Monkey logo

Comments (3)

Abhinav1217 avatar Abhinav1217 commented on June 5, 2024

A standard chaining pattern is quite popular in Javascript world, because of Jquery.

fuse = new Fuse(arr); 
result = fuse.search(Key).sort("Dec");

Or as a PHP developer, I could also prefer something like this.

fuse = new Fuse(arr);
fuse.extend(new SortedFuse());

or like in PDO based plugins ( I don't think it would suit JS apps. but it is easier to implement ).

fuse = new Fuse(arr);
sortfuse = new SortefFuse(fuse);

from fuse.

shri3k avatar shri3k commented on June 5, 2024

A standard chaining pattern is quite popular in Javascript world, because of Jquery.

That's all good for core extensibility but not for third party plugins as it will soon cause namespace conflicts. I would like to have something like pipe in unix since fuse mostly handles the data it would make sense to have .pipe (this can be confusing to node's pipe but just an example) or something in that realm.

.plugin actually doesn't sound bad but I'm bad with naming so it might actually sound bad for others.

from fuse.

github-actions avatar github-actions commented on June 5, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

from fuse.

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.