1.0.0 • Published 7 years ago

whydoidoit-resolver v1.0.0

Weekly downloads
16
License
ISC
Repository
github
Last release
7 years ago

Introduction

Resolve resolves a final value, it may be passed a function or a value and calls the function to produce a value in that mode.

Installation

npm install --save whydoidoit-resolver

Usage

import resolve from 'whydoidoit-resolver'

...

this.y = 10;
console.log(resolve(this.y)); //Logs 10
this.y = function() {
    return 20;
}
console.log(resolve(this.y)); //Logs 20