Skip to content
This repository has been archived by the owner on Aug 8, 2020. It is now read-only.

Add a symbol property to get current option chain's option #3

Open
legendecas opened this issue Jul 5, 2017 · 0 comments · May be fixed by #4
Open

Add a symbol property to get current option chain's option #3

legendecas opened this issue Jul 5, 2017 · 0 comments · May be fixed by #4

Comments

@legendecas
Copy link

legendecas commented Jul 5, 2017

Now it's not possible to access option chains' current opts outside the chain callback, what if we can access the current opts of the option chain with a predefined symbol?

optionChain.optsSymbol = Symbol('option-chain-opts')
const fn = optionChain(optionDefinition, printOptionsAndArgs);
fn.foo[optionChain.optsSymbol] //=> {foo: true};
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant