Permalink
Browse files

Update README.md

  • Loading branch information...
1 parent 91f2e34 commit d51f56bcd7aac852fd76b4fd5934165b7b8911ec @contra committed Feb 4, 2013
Showing with 2 additions and 3 deletions.
  1. +2 −3 README.md
View
@@ -74,10 +74,10 @@ Synchronous (LINQ)
####Javascript:
```javascript
var LINQ = require('node-linq').LINQ;
-var fs = require('fs');
+var path = require('path');
var files = ['test.txt', 'choni.txt', 'legacy.zip', 'secrets.txt', 'etc.rar'];
var arr = new LINQ(files)
- .Where(function(file) { return extname(file) === 'txt'; })
+ .Where(function(file) { return path.extname(file) === 'txt'; })
.OrderBy(function(file) { return file;})
.ToArray();
@@ -87,7 +87,6 @@ var arr = new LINQ(files)
####CoffeeScript:
```coffee-script
{LINQ} = require 'node-linq'
-fs = require 'fs'
{extname} = require 'path'
files = ['test.txt', 'choni.txt', 'legacy.zip', 'secrets.txt', 'etc.rar']

0 comments on commit d51f56b

Please sign in to comment.