esamattis / esamattis/underscore.string

Reference Error on using prune

Open
#428 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.4k
Forks
367
PR merge metrics
No merged PRs in 30d

Description

I added the package 'underscorestring:underscore.string" to my meteor project and on trying to use the "prune" method as below i am getting Reference Error. I could not find any document on how to invoke any methods. Can you please point out what i am doing wrong here?

Template.registerHelper('prune', function(string, length, pruneString)
{
console.log('string = ' + string);
console.log('length = ' + length);
console.log('pruneString = ' + pruneString);

```
return prune(string, length, pruneString);
```

});

Thanks

Jay

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.