GithubHelp home page GithubHelp logo

Suggestions about forgjs HOT 3 CLOSED

oussamahamdaoui avatar oussamahamdaoui commented on June 29, 2024
Suggestions

from forgjs.

Comments (3)

oussamahamdaoui avatar oussamahamdaoui commented on June 29, 2024 1

Hey,
thank you I added this function now you have acces to testAll(array) that performs tests over all the element of a array and returns the index of the element or -1 if no error is found
This feature is not on npm yet ill try to make a new release tonight
Released ✅

from forgjs.

kwkau avatar kwkau commented on June 29, 2024

Hi, i have taken a look at forgjs and so far everything looks pretty good, but i have one request. Can we have another method from test which can check the rules specified against multiple values. Example

`const someRule= new Rule({
type: 'yourType',
prop1: val1,
prop2: val2, ...
}, null);

someRule.testMultiple([values to test]) // returns true`

This will make validation of multiple values at once a breeze. If all the values are valid testMultiple returns true otherwise it will return the indices or the values which have failed the validation.

from forgjs.

kwkau avatar kwkau commented on June 29, 2024

Awesome, you are the man!!!!

from forgjs.

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.