Built motion from commit 1038d87.|0.0.141
[motion.git] / public / bower_components / lodash / lib / fp / build-doc.js
index 02800bc..bba62d2 100644 (file)
@@ -2,13 +2,12 @@
 
 var _ = require('lodash'),
     fs = require('fs-extra'),
-    path = require('path');
+    path = require('path'),
+    util = require('../common/util');
 
-var file = require('../common/file'),
-    mapping = require('../common/mapping');
-
-var templatePath = path.join(__dirname, 'template/doc'),
-    template = file.globTemplate(path.join(templatePath, '*.jst'));
+var mapping = require('../../fp/_mapping'),
+    templatePath = path.join(__dirname, 'template/doc'),
+    template = util.globTemplate(path.join(templatePath, '*.jst'));
 
 var argNames = ['a', 'b', 'c', 'd'];
 
@@ -19,11 +18,9 @@ var templateData = {
 };
 
 function toArgOrder(array) {
-  var reordered = [];
-  _.each(array, function(newIndex, index) {
-    reordered[newIndex] = argNames[index];
-  });
-  return '`(' + reordered.join(', ') + ')`';
+  return '`(' + _.map(array, function(value) {
+    return argNames[value];
+  }).join(', ') + ')`';
 }
 
 function toFuncList(array) {