| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * This function returns the first element index that >= target, when no element | 6 * This function returns the first element index that >= target, when no element |
| 7 * in the array >= target, return array.length. | 7 * in the array >= target, return array.length. |
| 8 * This function must be called in the shape of binarySearch(array, target). | 8 * This function must be called in the shape of binarySearch(array, target). |
| 9 * @param {number} target | 9 * @param {number} target |
| 10 * @return {number} | 10 * @return {number} |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 /** | 58 /** |
| 59 * Output object with indented format. | 59 * Output object with indented format. |
| 60 * @param {Object} obj | 60 * @param {Object} obj |
| 61 * @param {string} title | 61 * @param {string} title |
| 62 */ | 62 */ |
| 63 var inspect = function(obj, title) { | 63 var inspect = function(obj, title) { |
| 64 if (title) console.log(title); | 64 if (title) console.log(title); |
| 65 console.log(JSON.stringify(obj, null, 2)); | 65 console.log(JSON.stringify(obj, null, 2)); |
| 66 }; | 66 }; |
| OLD | NEW |