git ssb

0+

cel-desktop / ssb-pkg



Tree: efcf9fd06b02fa9bcd28681b4c777224e19702bb

Files: efcf9fd06b02fa9bcd28681b4c777224e19702bb / test / test-79-npm / extender / extender.js

313 bytesRaw
1'use strict';
2
3var extender = require('extender');
4
5var e = extender.define({
6 multiply: function (str, times) {
7 var ret = str;
8 for (var i = 1; i < times; i += 1) {
9 ret += str;
10 }
11 return ret;
12 }
13});
14
15var v = e('hello').multiply(2).value();
16
17if (v === 'hellohello') {
18 console.log('ok');
19}
20

Built with git-ssb-web