Coder Social home page Coder Social logo

erray's Introduction

Erray

About Erray

It is a custom JavaScript class similar of Array class. Intention to create it is practice on JavaScript array. It has total 18 methods description of every method is under followed. Few of methods will be added soon.

Methods

  • length() - Get length of specified erray object.
  • push() - Appends new elements to an erray object, and returns the new length of the erray object.
  • remove() - Remove a elements to an erray object, and returns the erray object.
  • indexOf() - Returns the position of the first occurrence of an element.
  • indexAt() - Returns the value of the first occurrence of an element.
  • join() - Adds all the elements of an erray object separated by the specified separator string.
  • concat() - Combines two or more erray objects.
  • forEach() - Calls dynamic function.
  • pop() - Removes the last element from an erray object and returns it.
  • fill() - Returns the erray object after filling the section identified by start and end with value.
  • includes() - Checking in given erray object an element is exists.
  • keys() - Returns the erray object of keys of an erray object.
  • valueOf() - Returns the values of the specified erray object.
  • toString() - Returns a string representation of an erray object.
  • reverse() - Reverses the elements in an erray object.
  • slice() - Returns an erray object with given start and end position.
  • shift() - Removes the first element from an erray object and returns it.
  • unshift() - Inserts new elements at the start of an erray object.

How to use it.

  • You need to import main.js in your frontend page.
  • Create an object of Erray class by writing 'var erray = new Erray(); or you can send value while object initialization'.
  • After creating an object of Erray class you can call all above methods as per your requirements.
  • For more detailed documentation about methods please look into erray.js.

erray's People

Watchers

 avatar

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.