28 lines
483 B
JavaScript
28 lines
483 B
JavaScript
|
|
var props = require('./');
|
|
|
|
function test(str, prefix) {
|
|
console.log();
|
|
console.log(str);
|
|
|
|
if (prefix) {
|
|
console.log('=> %s', props(str, prefix));
|
|
} else {
|
|
console.log('=> %s', props(str).join(' '));
|
|
}
|
|
}
|
|
|
|
test('~ret.indexOf(arr[i])')
|
|
|
|
test('name.first + name.last')
|
|
|
|
test('file.mime.split("/")')
|
|
|
|
test('file.type + " " + classes().join(" ")')
|
|
|
|
test('name.first + name.last() + last()', '$.')
|
|
|
|
test('something()', '$.')
|
|
|
|
test('Math.random() + Math.round(n)', '$.')
|