Skip to content

Commit

Permalink
docs(toString): Corrected the visibility of a private function
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-molak committed Aug 26, 2018
1 parent cc68f80 commit 18b2000
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/objects/stringify.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { significantFieldsOf } from './significantFields';

/**
* @access private
*/

const isObject = (_: any) => new Object(_) === _;
const isDate = (_: any) => _ instanceof Date;
const isArray = (_: any) => Array.isArray(_);
const isPrimitive = (_: any) => ! isObject(_);

/**
* @access private
*/
export function stringify(v: any): string {
switch (true) {
case isArray(v):
Expand Down

0 comments on commit 18b2000

Please sign in to comment.