GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - allouis/method-call: ES6 Implementation of the _ method calls in scala

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
Makefile
Makefile
 
 
README.md
README.md
 
 
index.js
index.js
 
 
package.json
package.json
 
 

Repository files navigation

method-call

This library allows you to use _ style method calls like in Scala.

Usage

import _ from 'method-call'

const names = ['fabien', 'donny', 'dave'];

const NAMES = names.map(_.toUpperCase); // ['FABIEN', 'DONNY', 'DAVE'];
import _ from 'method-call'
import Model from 'some-mvc'

class Document extends Model{
    constructor(id){
        this.id = id;
        super(id);
    }

    save(){
        const url = '/documents/' + this.id;
        return this.sync.post(url, this.attributes);
    }

}

let docs = [new Document(1), new Document(20)];

docs.forEach(_.save); // equiv to docs.forEach(d => d.save);

About

ES6 Implementation of the _ method calls in scala

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.